nixpkgs-suyu/pkgs/development/python-modules/django_guardian/default.nix
2019-03-15 17:50:39 +01:00

22 lines
644 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, 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 ];
};
}