lol

python3Packages.databases: 0.5.2 -> 0.5.3

+19 -12
+19 -12
pkgs/development/python-modules/databases/default.nix
··· 3 3 , fetchFromGitHub 4 4 , sqlalchemy 5 5 , aiocontextvars 6 - , isPy27 6 + , aiopg 7 + , pythonOlder 7 8 , pytestCheckHook 8 9 , pymysql 9 10 , asyncpg ··· 13 14 14 15 buildPythonPackage rec { 15 16 pname = "databases"; 16 - version = "0.5.2"; 17 - disabled = isPy27; 17 + version = "0.5.3"; 18 + 19 + disabled = pythonOlder "3.6"; 18 20 19 21 src = fetchFromGitHub { 20 22 owner = "encode"; 21 23 repo = pname; 22 24 rev = version; 23 - sha256 = "sha256-OfBb78lKnAxPhyy2j4TzEZWBzbw64brTQcxuOPoW9pk="; 25 + sha256 = "sha256-67ykx7HKGgRvJ+GRVEI/e2+x51kfHHFjh/iI4tY+6aE="; 24 26 }; 25 27 26 28 propagatedBuildInputs = [ 29 + aiopg 30 + aiomysql 31 + aiosqlite 32 + asyncpg 33 + pymysql 34 + sqlalchemy 35 + ] ++ lib.optionals (pythonOlder "3.7") [ 27 36 aiocontextvars 28 - sqlalchemy 29 37 ]; 30 38 31 39 checkInputs = [ 32 - aiomysql 33 - aiosqlite 34 - asyncpg 35 - pymysql 36 40 pytestCheckHook 37 41 ]; 38 42 39 43 disabledTestPaths = [ 40 - # ModuleNotFoundError: No module named 'aiopg' 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 + "tests/test_connection_options.py" 49 + ]; 50 + 51 + pythonImportsCheck = [ 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 - maintainers = [ maintainers.costrouc ]; 59 + maintainers = with maintainers; [ costrouc ]; 53 60 }; 54 61 }