From 17b7e342690a088b5e88deb14d5128e2d75290f4 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Fri, 5 Aug 2016 09:44:51 +0200 Subject: [PATCH] pythonPackages.django_guardian: init at 1.4.4 --- pkgs/top-level/python-packages.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2f1a3717b92..5fd75bea35c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9147,6 +9147,28 @@ in modules // { }; }; + django_guardian = buildPythonPackage rec { + name = "django-guardian-${version}"; + version = "1.4.4"; + + src = pkgs.fetchurl { + url = "mirror://pypi/d/django-guardian/${name}.tar.gz"; + sha256 = "1m7y3brk3697hr2cvkzl8dry4pp7wkmhvxmf8db1ardz1r9d8895"; + }; + + buildInputs = with self ; [ pytestrunner pytestdjango django_environ mock sqlite3 ]; + propagatedBuildInputs = with self ; [ django six ]; + + checkPhase = '' + ${python.interpreter} nix_run_setup.py test --addopts="--ignore build" + ''; + + meta = { + description = "Per object permissions for Django"; + homepage = https://github.com/django-guardian/django-guardian; + licenses = [ licenses.mit licenses.bsd2 ]; + }; + }; django_tagging = buildPythonPackage rec { name = "django-tagging-0.3.1";