git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.sqlalchemy: 1.0.15 -> 1.1.10
commit4cbd5e4141422b835a86bb1b5e2d004a3c9a3a3e authorFrederik Rietdijk <fridh@fridh.nl> dateSat 27 May 2017, 14:05 (10 years ago) parent45ac770
2 files changed+38−26
pkgs/development/python-modules/sqlalchemy/default.nix+37 pkgs/top-level/python-packages.nix+1−26
pkgs/development/python-modules/sqlalchemy/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, fetchPypi
3+, buildPythonPackage
4+, pytest
5+, mock
6+, pytest_xdist
7+, isPy3k
8+, pysqlite
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "SQLAlchemy";
13+ name = "${pname}-${version}";
14+ version = "1.1.10";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "dbd92b8af2306d600efa98ed36262d73aad227440a758c8dc3a067ca30096bd3";
19+ };
20+
21+ checkInputs = [ pytest mock pytest_xdist ]
22+ ++ lib.optional (!isPy3k) pysqlite;
23+
24+ # Test-only dependency pysqlite doesn't build on Python 3. This isn't an
25+ # acceptable reason to make all dependents unavailable on Python 3 as well
26+ #doCheck = !(isPyPy || isPy3k);
27+
28+ checkPhase = ''
29+ py.test
30+ '';
31+
32+ meta = with lib; {
33+ homepage = http://www.sqlalchemy.org/;
34+ description = "A Python SQL toolkit and Object Relational Mapper";
35+ license = licenses.mit;
36+ };
37+}
pkgs/top-level/python-packages.nix+1−26
@@ -24073,32 +24073,7 @@ in {
2407324073
2407424074
2407524075
24076− sqlalchemy = buildPythonPackage rec {
24077− name = "SQLAlchemy-${version}";
24078− version = "1.0.15";
24079−
24080− src = pkgs.fetchurl {
24081− url = "mirror://pypi/S/SQLAlchemy/${name}.tar.gz";
24082− sha256 = "586f5ccf068211795a89ed22d196c5cc3006b6be00261bcac6f584c0b8e0845a";
24083− };
24084−
24085− buildInputs = with self; [ pytest mock pytest_xdist ]
24086− ++ stdenv.lib.optional (!isPy3k) pysqlite;
24087−
24088− # Test-only dependency pysqlite doesn't build on Python 3. This isn't an
24089− # acceptable reason to make all dependents unavailable on Python 3 as well
24090− #doCheck = !(isPyPy || isPy3k);
24091−
24092− checkPhase = ''
24093− py.test
24094− '';
24095−
24096− meta = {
24097− homepage = http://www.sqlalchemy.org/;
24098− description = "A Python SQL toolkit and Object Relational Mapper";
24099− license = licenses.mit;
24100− };
24101− };
24076+ sqlalchemy = callPackage ../development/python-modules/sqlalchemy { };
2410224077
2410324078 SQLAlchemy-ImageAttach = buildPythonPackage rec {
2410424079 pname = "SQLAlchemy-ImageAttach";