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