2019-05-12 19:38:04 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-01-21 21:56:37 +01:00
|
|
|
, django_environ, mock, django, six
|
2019-03-15 17:48:21 +01:00
|
|
|
, pytest, pytestrunner, pytest-django
|
2017-01-21 21:56:37 +01:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "django-guardian";
|
2019-05-12 19:38:04 +02:00
|
|
|
version = "1.5.1";
|
2017-01-21 21:56:37 +01:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-12 19:38:04 +02:00
|
|
|
sha256 = "0fixr2g5amdgqzh0rvfvd7hbxyfd5ra3y3s0fsmp8i1b68p97930";
|
2017-01-21 21:56:37 +01:00
|
|
|
};
|
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
|
2019-03-15 17:48:21 +01:00
|
|
|
propagatedBuildInputs = [ django ];
|
2017-01-21 21:56:37 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Per object permissions for Django";
|
|
|
|
homepage = https://github.com/django-guardian/django-guardian;
|
2017-12-05 23:20:11 +01:00
|
|
|
license = [ licenses.mit licenses.bsd2 ];
|
2017-01-21 21:56:37 +01:00
|
|
|
};
|
|
|
|
}
|