2017-01-21 20:56:37 +00:00
|
|
|
{ stdenv, buildPythonPackage, python, fetchurl
|
|
|
|
, 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 {
|
|
|
|
name = "django-guardian-${version}";
|
|
|
|
version = "1.4.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
|
|
|
|
sha256 = "1r3xj0ik0hh6dfak4kjndxk5v73x95nfbppgr394nhnmiayv4zc5";
|
|
|
|
};
|
|
|
|
|
2017-03-16 16:19:10 +00:00
|
|
|
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];
|
2017-01-21 20:56:37 +00:00
|
|
|
propagatedBuildInputs = [ django six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Per object permissions for Django";
|
|
|
|
homepage = https://github.com/django-guardian/django-guardian;
|
|
|
|
licenses = [ licenses.mit licenses.bsd2 ];
|
|
|
|
};
|
|
|
|
}
|