diff --git a/pkgs/development/python-modules/django-cryptography/default.nix b/pkgs/development/python-modules/django-cryptography/default.nix index 0aa6df4f2d2c..a49a51939403 100644 --- a/pkgs/development/python-modules/django-cryptography/default.nix +++ b/pkgs/development/python-modules/django-cryptography/default.nix @@ -3,6 +3,7 @@ , django , django-appconf , fetchFromGitHub +, fetchpatch , lib , python , pythonOlder @@ -32,6 +33,11 @@ buildPythonPackage rec { django-appconf ]; + patches = [ + # See: https://github.com/georgemarshall/django-cryptography/pull/88 + ./fix-setup-cfg.patch + ]; + pythonImportsCheck = [ "django_cryptography" ]; checkPhase = '' diff --git a/pkgs/development/python-modules/django-cryptography/fix-setup-cfg.patch b/pkgs/development/python-modules/django-cryptography/fix-setup-cfg.patch new file mode 100644 index 000000000000..0cb7b9dba2aa --- /dev/null +++ b/pkgs/development/python-modules/django-cryptography/fix-setup-cfg.patch @@ -0,0 +1,16 @@ +diff --git a/setup.cfg b/setup.cfg +index 865b4c3..577d917 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -35,7 +35,10 @@ project_urls = + Documentation = https://django-cryptography.readthedocs.io + + [options] +-packages = django_cryptography ++packages = ++ django_cryptography ++ django_cryptography.core ++ django_cryptography.utils + python_requires = >=3.6 + include_package_data = True + install_requires =