2019-05-12 10:38:04 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-06-16 12:59:06 -07:00
|
|
|
, django_environ, mock, django
|
2019-03-15 09:48:21 -07:00
|
|
|
, pytest, pytestrunner, pytest-django
|
2017-01-21 12:56:37 -08:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "django-guardian";
|
2020-06-05 23:47:05 -07:00
|
|
|
version = "2.2.0";
|
2017-01-21 12:56:37 -08:00
|
|
|
|
2018-06-23 06:27:58 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:05 -07:00
|
|
|
sha256 = "8cacf49ebcc1e545f0a8997971eec0fe109f5ed31fc2a569a7bf5615453696e2";
|
2017-01-21 12:56:37 -08:00
|
|
|
};
|
|
|
|
|
2018-06-23 06:27:58 -07:00
|
|
|
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
|
2019-03-15 09:48:21 -07:00
|
|
|
propagatedBuildInputs = [ django ];
|
2017-01-21 12:56:37 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Per object permissions for Django";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/django-guardian/django-guardian";
|
2017-12-05 14:20:11 -08:00
|
|
|
license = [ licenses.mit licenses.bsd2 ];
|
2017-01-21 12:56:37 -08:00
|
|
|
};
|
|
|
|
}
|