nixpkgs/pkgs/development/python-modules/django-cryptography/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

53 lines
1.1 KiB
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
];
patches = [
# See: https://github.com/georgemarshall/django-cryptography/pull/88
./fix-setup-cfg.patch
];
pythonImportsCheck = [ "django_cryptography" ];
checkPhase = ''
runHook preCheck
${python.interpreter} ./runtests.py
runHook postCheck
'';
meta = with lib; {
homepage = "https://github.com/georgemarshall/django-cryptography";
description = "Set of primitives for performing cryptography in Django";
license = licenses.bsd3;
maintainers = with maintainers; [ centromere ];
};
}