Files
nixpkgs/pkgs/development/python-modules/django_guardian/default.nix
T

28 lines
805 B
Nix
Raw Normal View History

2018-06-23 15:27:58 +02:00
{ stdenv, buildPythonPackage, python, fetchPypi
, django_environ, mock, django, six
2017-03-16 17:19:10 +01:00
, pytest, pytestrunner, pytest-django, setuptools_scm
}:
buildPythonPackage rec {
2017-05-27 11:25:35 +02:00
pname = "django-guardian";
2017-07-03 20:19:57 +02:00
version = "1.4.9";
2018-06-23 15:27:58 +02:00
src = fetchPypi {
inherit pname version;
2017-07-03 20:19:57 +02:00
sha256 = "c3c0ab257c9d94ce154b9ee32994e3cff8b350c384040705514e14a9fb7c8191";
};
2018-06-23 15:27:58 +02:00
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ django six ];
checkPhase = ''
${python.interpreter} nix_run_setup test --addopts="--ignore build"
'';
meta = with stdenv.lib; {
description = "Per object permissions for Django";
homepage = https://github.com/django-guardian/django-guardian;
2017-12-05 23:20:11 +01:00
license = [ licenses.mit licenses.bsd2 ];
};
}