2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, django_environ, mock, django
|
|
|
|
, pytest, pytestrunner, pytest-django
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-guardian";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "ed2de26e4defb800919c5749fb1bbe370d72829fbd72895b6cf4f7f1a7607e1b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|