diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2017-01-21 21:50:13 +0100 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2017-01-24 22:13:07 +0100 |
commit | 93d0e4ab5b790207842d7bba03d5bc3383c55edf (patch) | |
tree | f0f113fa9a9b523fe34b4541644742059cf0c059 /pkgs | |
parent | 034d39b2447b251e9613decb6e987efd794a1c15 (diff) | |
download | nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar.gz nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar.bz2 nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar.lz nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar.xz nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.tar.zst nixlib-93d0e4ab5b790207842d7bba03d5bc3383c55edf.zip |
pythonPackages.pytestdjango: 2.9.1 -> 3.1.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pytestdjango.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 23 |
2 files changed, 23 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/pytestdjango.nix b/pkgs/development/python-modules/pytestdjango.nix new file mode 100644 index 000000000000..5a8dd85f4bdb --- /dev/null +++ b/pkgs/development/python-modules/pytestdjango.nix @@ -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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ffb1aefdd336..893cce234c1c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5077,27 +5077,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 { |