b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
43 lines
943 B
Nix
43 lines
943 B
Nix
{ 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 ];
|
|
};
|
|
}
|