2018-06-23 14:27:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, python, fetchPypi
|
2017-01-21 20:56:37 +00:00
|
|
|
, django_environ, mock, django, six
|
2017-03-16 16:19:10 +00:00
|
|
|
, pytest, pytestrunner, pytest-django, setuptools_scm
|
2017-01-21 20:56:37 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "django-guardian";
|
2019-02-14 07:37:14 +00:00
|
|
|
version = "1.5.0";
|
2017-01-21 20:56:37 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:14 +00:00
|
|
|
sha256 = "9e144bbdfa67f523dc6f70768653a19c0aac29394f947a80dcb8eb7900840637";
|
2017-01-21 20:56:37 +00:00
|
|
|
};
|
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
|
|
|
|
buildInputs = [ setuptools_scm ];
|
2017-01-21 20:56:37 +00:00
|
|
|
propagatedBuildInputs = [ django six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-01-20 12:31:14 +00:00
|
|
|
${python.interpreter} nix_run_setup test --addopts="--ignore build"
|
2017-01-21 20:56:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Per object permissions for Django";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|