nixpkgs/pkgs/development/python-modules/django_guardian/default.nix

24 lines
736 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, django_environ, mock, django, six
, pytest, pytestrunner, pytest-django
}:
buildPythonPackage rec {
pname = "django-guardian";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "9e144bbdfa67f523dc6f70768653a19c0aac29394f947a80dcb8eb7900840637";
};
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
description = "Per object permissions for Django";
homepage = https://github.com/django-guardian/django-guardian;
license = [ licenses.mit licenses.bsd2 ];
broken = !isPy3k; # https://github.com/django-guardian/django-guardian/pull/605
};
}