diff --git a/pkgs/development/python-modules/django-storages/default.nix b/pkgs/development/python-modules/django-storages/default.nix index 161012236047..b5e1aa5e2546 100644 --- a/pkgs/development/python-modules/django-storages/default.nix +++ b/pkgs/development/python-modules/django-storages/default.nix @@ -41,6 +41,13 @@ buildPythonPackage rec { hash = "sha256-jSb/uJ0RXvPsXl+WUAzAgDvJl9Y3ad2F30X1SbsCc04="; name = "add_moto_5_support.patch"; }) + # Fix Google Cloud tests + # https://github.com/jschneier/django-storages/pull/1476 + (fetchpatch { + url = "https://github.com/jschneier/django-storages/commit/fda4e2375bfc5b400593ce01f6516dc3264d0357.patch"; + hash = "sha256-Dga4xvCjeKEwuH0ynyJeM0criBtKT6Z+4gINXMKh4Ng="; + name = "fix_google_cloud_tests.patch"; + }) ]; build-system = [ setuptools ]; @@ -70,12 +77,6 @@ buildPythonPackage rec { env.DJANGO_SETTINGS_MODULE = "tests.settings"; - disabledTests = [ - # AttributeError: 'str' object has no attribute 'universe_domain' - # https://github.com/jschneier/django-storages/issues/1463 - "test_storage_save_gzip" - ]; - meta = { description = "Collection of custom storage backends for Django"; changelog = "https://github.com/jschneier/django-storages/blob/${version}/CHANGELOG.rst";