From ad694aaf6616bec0abb079f5c9354fa2b0571c2b Mon Sep 17 00:00:00 2001 From: Alex Wied Date: Tue, 2 May 2023 13:27:07 -0400 Subject: [PATCH] python3Packages.django-cryptography: include missing source files --- .../django-cryptography/default.nix | 6 ++++++ .../django-cryptography/fix-setup-cfg.patch | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/django-cryptography/fix-setup-cfg.patch diff --git a/pkgs/development/python-modules/django-cryptography/default.nix b/pkgs/development/python-modules/django-cryptography/default.nix index 0aa6df4f2d2cf..a49a519394032 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 0000000000000..0cb7b9dba2aa0 --- /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 =