Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-cryptography / default.nix
bloba49a51939403229051f9bf42b82940662b64e03c
1 { buildPythonPackage
2 , cryptography
3 , django
4 , django-appconf
5 , fetchFromGitHub
6 , fetchpatch
7 , lib
8 , python
9 , pythonOlder
10 , setuptools
13 buildPythonPackage rec {
14   pname = "django-cryptography";
15   version = "1.1";
16   disabled = pythonOlder "3.7";
17   format = "pyproject";
19   src = fetchFromGitHub {
20     owner = "georgemarshall";
21     repo = "django-cryptography";
22     rev = "refs/tags/${version}";
23     hash = "sha256-C3E2iT9JdLvF+1g+xhZ8dPDjjh25JUxLAtTMnalIxPk=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     cryptography
32     django
33     django-appconf
34   ];
36   patches = [
37     # See: https://github.com/georgemarshall/django-cryptography/pull/88
38     ./fix-setup-cfg.patch
39   ];
41   pythonImportsCheck = [ "django_cryptography" ];
43   checkPhase = ''
44     runHook preCheck
45     ${python.interpreter} ./runtests.py
46     runHook postCheck
47   '';
49   meta = with lib; {
50     homepage = "https://github.com/georgemarshall/django-cryptography";
51     description = "A set of primitives for performing cryptography in Django";
52     license = licenses.bsd3;
53     maintainers = with maintainers; [ centromere ];
54   };