mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
python3Packages.django-cryptography: init at 1.1
This commit is contained in:
parent
881be4449f
commit
0f1a17e1a6
2 changed files with 45 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue