depot/third_party/nixpkgs/pkgs/development/python-modules/django-cryptography/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

49 lines
1,001 B
Nix

{ buildPythonPackage
, cryptography
, django
, django-appconf
, fetchFromGitHub
, lib
, python
, pythonOlder
, setuptools
}:
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=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}