ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / django-cryptography / default.nix
blob0aa6df4f2d2cf8b70173afc71e8ba82f49dd28ed
1 { buildPythonPackage
2 , cryptography
3 , django
4 , django-appconf
5 , fetchFromGitHub
6 , lib
7 , python
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "django-cryptography";
14   version = "1.1";
15   disabled = pythonOlder "3.7";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "georgemarshall";
20     repo = "django-cryptography";
21     rev = "refs/tags/${version}";
22     hash = "sha256-C3E2iT9JdLvF+1g+xhZ8dPDjjh25JUxLAtTMnalIxPk=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     cryptography
31     django
32     django-appconf
33   ];
35   pythonImportsCheck = [ "django_cryptography" ];
37   checkPhase = ''
38     runHook preCheck
39     ${python.interpreter} ./runtests.py
40     runHook postCheck
41   '';
43   meta = with lib; {
44     homepage = "https://github.com/georgemarshall/django-cryptography";
45     description = "A set of primitives for performing cryptography in Django";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ centromere ];
48   };