diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-17 12:47:46 +0200 |
|---|---|---|
| committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-17 12:47:46 +0200 |
| commit | bc64880909b7540ca358f2ae50fe7697d7330f40 (patch) | |
| tree | fb001929e7fdc1ef68023c5a721fcb7b58ebc045 /pkgs/development/python-modules/databases | |
| parent | Merge pull request #141683 from LibreCybernetics/update-android-studio (diff) | |
| download | nixpkgs-bc64880909b7540ca358f2ae50fe7697d7330f40.tar.gz | |
python3Packages.databases: 0.5.2 -> 0.5.3
Diffstat (limited to 'pkgs/development/python-modules/databases')
| -rw-r--r-- | pkgs/development/python-modules/databases/default.nix | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/databases/default.nix b/pkgs/development/python-modules/databases/default.nix index ae635b3058a4..2facff6c840b 100644 --- a/pkgs/development/python-modules/databases/default.nix +++ b/pkgs/development/python-modules/databases/default.nix @@ -3,7 +3,8 @@ , fetchFromGitHub , sqlalchemy , aiocontextvars -, isPy27 +, aiopg +, pythonOlder , pytestCheckHook , pymysql , asyncpg @@ -13,42 +14,48 @@ buildPythonPackage rec { pname = "databases"; - version = "0.5.2"; - disabled = isPy27; + version = "0.5.3"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-OfBb78lKnAxPhyy2j4TzEZWBzbw64brTQcxuOPoW9pk="; + sha256 = "sha256-67ykx7HKGgRvJ+GRVEI/e2+x51kfHHFjh/iI4tY+6aE="; }; propagatedBuildInputs = [ - aiocontextvars - sqlalchemy - ]; - - checkInputs = [ + aiopg aiomysql aiosqlite asyncpg pymysql + sqlalchemy + ] ++ lib.optionals (pythonOlder "3.7") [ + aiocontextvars + ]; + + checkInputs = [ pytestCheckHook ]; disabledTestPaths = [ - # ModuleNotFoundError: No module named 'aiopg' - "tests/test_connection_options.py" # circular dependency on starlette "tests/test_integration.py" # TEST_DATABASE_URLS is not set. "tests/test_databases.py" + "tests/test_connection_options.py" + ]; + + pythonImportsCheck = [ + "databases" ]; meta = with lib; { description = "Async database support for Python"; homepage = "https://github.com/encode/databases"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |
