pythonPackages.django_guardian: 1.4.4 -> 1.4.6
This commit is contained in:
parent
93d0e4ab5b
commit
b6e5976d4b
26
pkgs/development/python-modules/django_guardian.nix
Normal file
26
pkgs/development/python-modules/django_guardian.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, buildPythonPackage, python, fetchurl
|
||||||
|
, django_environ, mock, django, six
|
||||||
|
, pytest, pytestrunner, pytestdjango, setuptools_scm
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "django-guardian-${version}";
|
||||||
|
version = "1.4.6";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
|
||||||
|
sha256 = "1r3xj0ik0hh6dfak4kjndxk5v73x95nfbppgr394nhnmiayv4zc5";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest pytestrunner pytestdjango django_environ mock setuptools_scm ];
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -10405,27 +10405,8 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
django_guardian = buildPythonPackage rec {
|
django_guardian = callPackage ../development/python-modules/django_guardian.nix {
|
||||||
name = "django-guardian-${version}";
|
pytest = self.pytest_30;
|
||||||
version = "1.4.4";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
|
|
||||||
sha256 = "1m7y3brk3697hr2cvkzl8dry4pp7wkmhvxmf8db1ardz1r9d8895";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self ; [ pytest pytestrunner pytestdjango django_environ mock ];
|
|
||||||
propagatedBuildInputs = with self ; [ django six ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Per object permissions for Django";
|
|
||||||
homepage = https://github.com/django-guardian/django-guardian;
|
|
||||||
licenses = [ licenses.mit licenses.bsd2 ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
django_tagging = buildPythonPackage rec {
|
django_tagging = buildPythonPackage rec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user