2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, django_environ, mock, django
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest, pytest-runner, pytest-django
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-guardian";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-runner pytest-django django_environ mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Per object permissions for Django";
|
|
|
|
homepage = "https://github.com/django-guardian/django-guardian";
|
|
|
|
license = [ licenses.mit licenses.bsd2 ];
|
|
|
|
};
|
|
|
|
}
|