Merge pull request #22025 from lsix/update_django_guardian
Update django guardian
This commit is contained in:
commit
cad9bdc78d
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 ];
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/pytest/2_7.nix
Normal file
28
pkgs/development/python-modules/pytest/2_7.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-2.7.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm";
|
||||
};
|
||||
|
||||
# Disabled temporarily because of Hydra issue with namespaces
|
||||
doCheck = false;
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ py ]
|
||||
++ (stdenv.lib.optional isPy26 argparse)
|
||||
++ stdenv.lib.optional
|
||||
pkgs.config.pythonPackages.pytest.selenium or false
|
||||
selenium;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ domenkozar lovek323 madjar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/pytest/2_8.nix
Normal file
28
pkgs/development/python-modules/pytest/2_8.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-2.8.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w";
|
||||
};
|
||||
|
||||
# Disabled temporarily because of Hydra issue with namespaces
|
||||
doCheck = false;
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ py ]
|
||||
++ (stdenv.lib.optional isPy26 argparse)
|
||||
++ stdenv.lib.optional
|
||||
pkgs.config.pythonPackages.pytest.selenium or false
|
||||
selenium;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ domenkozar lovek323 madjar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/pytest/2_9.nix
Normal file
28
pkgs/development/python-modules/pytest/2_9.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-2.9.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j";
|
||||
};
|
||||
|
||||
# Disabled temporarily because of Hydra issue with namespaces
|
||||
doCheck = false;
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ py ]
|
||||
++ (stdenv.lib.optional isPy26 argparse)
|
||||
++ stdenv.lib.optional
|
||||
pkgs.config.pythonPackages.pytest.selenium or false
|
||||
selenium;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ domenkozar lovek323 madjar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
24
pkgs/development/python-modules/pytest/default.nix
Normal file
24
pkgs/development/python-modules/pytest/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl, isPy26, argparse, hypothesis, py }:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-${version}";
|
||||
version = "3.0.6";
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "0h6rfp7y7c5mqwfm9fy5fq4l9idnp160c82ylcfjg251y6lk8d34";
|
||||
};
|
||||
|
||||
buildInputs = [ hypothesis ];
|
||||
propagatedBuildInputs = [ py ]
|
||||
++ (stdenv.lib.optional isPy26 argparse);
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
21
pkgs/development/python-modules/pytestdjango.nix
Normal file
21
pkgs/development/python-modules/pytestdjango.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl
|
||||
, pytest, django, setuptools_scm
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-django-${version}";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest-django/${name}.tar.gz";
|
||||
sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest setuptools_scm ];
|
||||
propagatedBuildInputs = [ django ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "py.test plugin for testing of Django applications";
|
||||
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
@ -5014,61 +5014,13 @@ in {
|
||||
|
||||
pytest = self.pytest_29;
|
||||
|
||||
pytest_27 = buildPythonPackage rec {
|
||||
name = "pytest-2.7.3";
|
||||
pytest_27 = callPackage ../development/python-modules/pytest/2_7.nix {};
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm";
|
||||
};
|
||||
pytest_28 = callPackage ../development/python-modules/pytest/2_8.nix {};
|
||||
|
||||
# Disabled temporarily because of Hydra issue with namespaces
|
||||
doCheck = false;
|
||||
pytest_29 = callPackage ../development/python-modules/pytest/2_9.nix {};
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [ py ]
|
||||
++ (optional isPy26 argparse)
|
||||
++ stdenv.lib.optional
|
||||
pkgs.config.pythonPackages.pytest.selenium or false
|
||||
self.selenium;
|
||||
|
||||
meta = {
|
||||
maintainers = with maintainers; [ domenkozar lovek323 madjar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
};
|
||||
|
||||
pytest_28 = self.pytest_27.override rec {
|
||||
name = "pytest-2.8.7";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w";
|
||||
};
|
||||
};
|
||||
|
||||
pytest_29 = self.pytest_27.override rec {
|
||||
name = "pytest-2.9.2";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j";
|
||||
};
|
||||
};
|
||||
|
||||
pytest_30 = self.pytest_27.override rec {
|
||||
name = "pytest-3.0.5";
|
||||
|
||||
propagatedBuildInputs = with self; [ hypothesis py ];
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||||
sha256 = "1z9pj39w0r2gw5hsqndlmsqa80kgbrann5kfma8ww8zhaslkl02a";
|
||||
};
|
||||
};
|
||||
pytest_30 = callPackage ../development/python-modules/pytest {};
|
||||
|
||||
pytestcache = buildPythonPackage rec {
|
||||
name = "pytest-cache-1.0";
|
||||
@ -5094,27 +5046,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
pytestdjango = buildPythonPackage rec {
|
||||
name = "pytest-django-${version}";
|
||||
version = "2.9.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pytest-django/${name}.tar.gz";
|
||||
sha256 = "1mmc7zsz3dlhs6sx4sppkj1vgshabi362r1a8b8wpj1qfximpqcb";
|
||||
};
|
||||
|
||||
# doing this to allow depending packages to find
|
||||
# pytest's binaries
|
||||
pytest = self.pytest;
|
||||
|
||||
buildInputs = with self; [ pytest ];
|
||||
propagatedBuildInputs = with self; [ django setuptools_scm_18 ];
|
||||
|
||||
meta = {
|
||||
description = "py.test plugin for testing of Django applications";
|
||||
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
pytestdjango = callPackage ../development/python-modules/pytestdjango.nix {
|
||||
pytest = self.pytest_30;
|
||||
};
|
||||
|
||||
pytest-fixture-config = buildPythonPackage rec {
|
||||
@ -10441,27 +10374,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
django_guardian = buildPythonPackage rec {
|
||||
name = "django-guardian-${version}";
|
||||
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_guardian = callPackage ../development/python-modules/django_guardian.nix {
|
||||
pytest = self.pytest_30;
|
||||
};
|
||||
|
||||
django_tagging = buildPythonPackage rec {
|
||||
|
Loading…
Reference in New Issue
Block a user