2017-01-21 23:56:37 +03:00
|
|
|
{ stdenv, buildPythonPackage, python, fetchurl
|
|
|
|
, django_environ, mock, django, six
|
2017-03-16 19:19:10 +03:00
|
|
|
, pytest, pytestrunner, pytest-django, setuptools_scm
|
2017-01-21 23:56:37 +03:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "django-guardian-${version}";
|
2017-04-07 18:05:05 +03:00
|
|
|
version = "1.4.8";
|
2017-01-21 23:56:37 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
|
2017-04-07 18:05:05 +03:00
|
|
|
sha256 = "039mfx47c05vl6vlld0ahyq37z7m5g68vqc38pj8iic5ysr98drm";
|
2017-01-21 23:56:37 +03:00
|
|
|
};
|
|
|
|
|
2017-03-16 19:19:10 +03:00
|
|
|
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];
|
2017-01-21 23:56:37 +03: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 ];
|
|
|
|
};
|
|
|
|
}
|