summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/databases
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/databases
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/databases')
-rw-r--r--pkgs/development/python-modules/databases/default.nix27
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/databases/default.nix b/pkgs/development/python-modules/databases/default.nix
index f5a7c52ef8e5..3a1da0697c0d 100644
--- a/pkgs/development/python-modules/databases/default.nix
+++ b/pkgs/development/python-modules/databases/default.nix
@@ -4,7 +4,8 @@
, sqlalchemy
, aiocontextvars
, isPy27
-, pytest
+, pytestCheckHook
+, pymysql
, asyncpg
, aiomysql
, aiosqlite
@@ -12,33 +13,37 @@
buildPythonPackage rec {
pname = "databases";
- version = "0.2.6";
+ version = "0.4.3";
disabled = isPy27;
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
- sha256 = "0cdb4vln4zdmqbbcj7711b81b2l64jg1miihqcg8gpi35v404h2q";
+ sha256 = "0aq88k7d9036cy6qvlfv9p2dxd6p6fic3j0az43gn6k1ardhdsgf";
};
propagatedBuildInputs = [
- sqlalchemy
aiocontextvars
+ sqlalchemy
];
checkInputs = [
- pytest
- asyncpg
aiomysql
aiosqlite
+ asyncpg
+ pymysql
+ pytestCheckHook
];
- # big chunk to tests depend on existing posgresql and mysql databases
- # some tests are better than no tests
- checkPhase = ''
- pytest --ignore=tests/test_integration.py --ignore=tests/test_databases.py
- '';
+ 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"
+ ];
meta = with lib; {
description = "Async database support for Python";