tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.databases: 0.5.2 -> 0.5.3
Fabian Affolter
4 years ago
bc648809
cb10e4dd
+19
-12
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
databases
default.nix
+19
-12
pkgs/development/python-modules/databases/default.nix
reviewed
···
3
3
, fetchFromGitHub
4
4
, sqlalchemy
5
5
, aiocontextvars
6
6
-
, isPy27
6
6
+
, aiopg
7
7
+
, pythonOlder
7
8
, pytestCheckHook
8
9
, pymysql
9
10
, asyncpg
···
13
14
14
15
buildPythonPackage rec {
15
16
pname = "databases";
16
16
-
version = "0.5.2";
17
17
-
disabled = isPy27;
17
17
+
version = "0.5.3";
18
18
+
19
19
+
disabled = pythonOlder "3.6";
18
20
19
21
src = fetchFromGitHub {
20
22
owner = "encode";
21
23
repo = pname;
22
24
rev = version;
23
23
-
sha256 = "sha256-OfBb78lKnAxPhyy2j4TzEZWBzbw64brTQcxuOPoW9pk=";
25
25
+
sha256 = "sha256-67ykx7HKGgRvJ+GRVEI/e2+x51kfHHFjh/iI4tY+6aE=";
24
26
};
25
27
26
28
propagatedBuildInputs = [
29
29
+
aiopg
30
30
+
aiomysql
31
31
+
aiosqlite
32
32
+
asyncpg
33
33
+
pymysql
34
34
+
sqlalchemy
35
35
+
] ++ lib.optionals (pythonOlder "3.7") [
27
36
aiocontextvars
28
28
-
sqlalchemy
29
37
];
30
38
31
39
checkInputs = [
32
32
-
aiomysql
33
33
-
aiosqlite
34
34
-
asyncpg
35
35
-
pymysql
36
40
pytestCheckHook
37
41
];
38
42
39
43
disabledTestPaths = [
40
40
-
# ModuleNotFoundError: No module named 'aiopg'
41
41
-
"tests/test_connection_options.py"
42
44
# circular dependency on starlette
43
45
"tests/test_integration.py"
44
46
# TEST_DATABASE_URLS is not set.
45
47
"tests/test_databases.py"
48
48
+
"tests/test_connection_options.py"
49
49
+
];
50
50
+
51
51
+
pythonImportsCheck = [
52
52
+
"databases"
46
53
];
47
54
48
55
meta = with lib; {
49
56
description = "Async database support for Python";
50
57
homepage = "https://github.com/encode/databases";
51
58
license = licenses.bsd3;
52
52
-
maintainers = [ maintainers.costrouc ];
59
59
+
maintainers = with maintainers; [ costrouc ];
53
60
};
54
61
}