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";