From 0cefcc625d0428af8fab7b3105b81a8eee7772fa Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 22 Dec 2020 17:55:46 +0100 Subject: [PATCH] pythonPackages.progressbar2: fix build build failed because tests depend on pytest-pep8 which is unmaintained and therefore not worth packaging. it's probably better to wait for upstream to resolve the linked issue. --- .../python-modules/progressbar2/default.nix | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/progressbar2/default.nix b/pkgs/development/python-modules/progressbar2/default.nix index 789828b7143..55590f8bd06 100644 --- a/pkgs/development/python-modules/progressbar2/default.nix +++ b/pkgs/development/python-modules/progressbar2/default.nix @@ -2,15 +2,7 @@ , python , buildPythonPackage , fetchPypi -, pytest , python-utils -, sphinx -, flake8 -, pytest-flakes -, pytestcov -, pytestcache -, pytestrunner -, freezegun }: buildPythonPackage rec { @@ -23,17 +15,12 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ python-utils ]; - nativeBuildInputs = [ pytestrunner ]; - checkInputs = [ - pytest sphinx flake8 pytest-flakes pytestcov - pytestcache freezegun - ]; - # ignore tests on the nix wrapped setup.py - checkPhase = '' - runHook preCheck - ${python.interpreter} setup.py test - runHook postCheck - ''; + + # depends on unmaintained pytest-pep8 + # https://github.com/WoLpH/python-progressbar/issues/241 + doCheck = false; + + pythonImportsCheck = [ "progressbar" ]; meta = with stdenv.lib; { homepage = "https://progressbar-2.readthedocs.io/en/latest/";