diff --git a/pkgs/development/python-modules/django-cryptography/default.nix b/pkgs/development/python-modules/django-cryptography/default.nix new file mode 100644 index 000000000000..6443e74aa378 --- /dev/null +++ b/pkgs/development/python-modules/django-cryptography/default.nix @@ -0,0 +1,43 @@ +{ buildPythonPackage +, cryptography +, django +, django-appconf +, fetchFromGitHub +, lib +, python +, pythonOlder }: + +buildPythonPackage rec { + pname = "django-cryptography"; + version = "1.1"; + disabled = pythonOlder "3.7"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "georgemarshall"; + repo = "django-cryptography"; + rev = "refs/tags/${version}"; + hash = "sha256-C3E2iT9JdLvF+1g+xhZ8dPDjjh25JUxLAtTMnalIxPk="; + }; + + propagatedBuildInputs = [ + cryptography + django + django-appconf + ]; + + pythonImportsCheck = [ "django_cryptography" ]; + + checkPhase = '' + runHook preCheck + ${python.interpreter} ./runtests.py + runHook postCheck + ''; + + meta = with lib; { + homepage = "https://github.com/georgemarshall/django-cryptography"; + description = "A set of primitives for performing cryptography in Django"; + license = licenses.bsd3; + maintainers = with maintainers; [ centromere ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 77fb81725965..510668a9305f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2489,6 +2489,8 @@ in { django-cors-headers = callPackage ../development/python-modules/django-cors-headers { }; + django-cryptography = callPackage ../development/python-modules/django-cryptography { }; + django-csp = callPackage ../development/python-modules/django-csp { }; django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { };