2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, django_environ, mock, django
|
|
|
|
, pytest, pytestrunner, pytest-django
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-guardian";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "8cacf49ebcc1e545f0a8997971eec0fe109f5ed31fc2a569a7bf5615453696e2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|