From 9464799e8e37c359c3d57712e98c2a59cec897d2 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 23 Nov 2024 14:23:07 +0100 Subject: [PATCH] python3Packages.django-storages: Enable one test --- .../python-modules/django-storages/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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";