2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
django,
|
|
|
|
django-appconf,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
django
|
|
|
|
django-appconf
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
# See: https://github.com/georgemarshall/django-cryptography/pull/88
|
|
|
|
./fix-setup-cfg.patch
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|