From 25c9946f95a0be44a5794da66da1e7f2ca116d42 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Thu, 10 Dec 2020 12:44:58 -0500 Subject: [PATCH] python27Packages.pytestpep8: remove due to pytest v6 incompatibility Remove ``pythonPackages.pytestpep8`` because: * It has been abandoned upstream: no PyPi release since 2014 * It is no longer compatible with pytest v6+: I get an error pointing to https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent when I try to use it with ``pytestCheckHook`` (i.e. pytest v6.0+) * It doesn't have a maintainer --- .../python-modules/pytest-pep8/default.nix | 28 ------------------- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 pkgs/development/python-modules/pytest-pep8/default.nix diff --git a/pkgs/development/python-modules/pytest-pep8/default.nix b/pkgs/development/python-modules/pytest-pep8/default.nix deleted file mode 100644 index 82a900a9d2f021..00000000000000 --- a/pkgs/development/python-modules/pytest-pep8/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ stdenv, buildPythonPackage, fetchPypi -, pytest, pytestcache, pep8 }: - -buildPythonPackage rec { - pname = "pytest-pep8"; - version = "1.0.6"; - - src = fetchPypi { - inherit pname version; - sha256 = "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"; - }; - - buildInputs = [ pytest ]; - propagatedBuildInputs = [ pytestcache pep8 ]; - - checkPhase = '' - py.test - ''; - - # Fails - doCheck = false; - - meta = with stdenv.lib; { - license = licenses.mit; - homepage = "https://pypi.python.org/pypi/pytest-pep8"; - description = "pytest plugin to check PEP8 requirements"; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 625045c1df12e7..a7657174fc8775 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5803,7 +5803,7 @@ in { pytest-pep257 = callPackage ../development/python-modules/pytest-pep257 { }; - pytestpep8 = callPackage ../development/python-modules/pytest-pep8 { }; + pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10 pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };