diff --git a/pkgs/development/python-modules/sqlalchemy-utils/default.nix b/pkgs/development/python-modules/sqlalchemy-utils/default.nix index c53ab7c41223..49bba2811312 100644 --- a/pkgs/development/python-modules/sqlalchemy-utils/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-utils/default.nix @@ -17,12 +17,12 @@ buildPythonPackage rec { pname = "sqlalchemy-utils"; - version = "0.38.2"; + version = "0.38.3"; src = fetchPypi { inherit version; pname = "SQLAlchemy-Utils"; - sha256 = "9e01d6d3fb52d3926fcd4ea4a13f3540701b751aced0316bff78264402c2ceb4"; + sha256 = "sha256-n5r7pgekBFXPcDrfqYRlhL8mFooMWmCnAGO3DWUFH00="; }; patches = [ diff --git a/pkgs/development/python-modules/sqlalchemy-utils/skip-database-tests.patch b/pkgs/development/python-modules/sqlalchemy-utils/skip-database-tests.patch index 887128dd44ce..79aa12f03d99 100644 --- a/pkgs/development/python-modules/sqlalchemy-utils/skip-database-tests.patch +++ b/pkgs/development/python-modules/sqlalchemy-utils/skip-database-tests.patch @@ -2,13 +2,15 @@ diff --git a/conftest.py b/conftest.py index 9e146cd..8dbc9a5 100644 --- a/conftest.py +++ b/conftest.py -@@ -61,16 +61,12 @@ def mysql_db_user(): +@@ -61,17 +61,12 @@ def mysql_db_user(): @pytest.fixture - def postgresql_dsn(postgresql_db_user, postgresql_db_password, db_name): -- return 'postgresql://{0}:{1}@localhost/{2}'.format( + def postgresql_dsn(postgresql_db_user, postgresql_db_password, postgresql_db_host, + db_name): +- return 'postgresql://{0}:{1}@{2}/{3}'.format( - postgresql_db_user, - postgresql_db_password, +- postgresql_db_host, - db_name - ) + pytest.skip() @@ -68,7 +70,7 @@ index 0ad6721..83f208d 100644 'TEMPLATE "my-template"') in str(excinfo.value) --class TestDatabasePostgresCreateDatabaseCloseConnection(object): +-class TestDatabasePostgresCreateDatabaseCloseConnection: - def test_create_database_twice( - self, - postgresql_db_user,