Skip to content

Commit

Permalink
pythonPackages.progressbar2: fix build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sternenseemann committed Dec 22, 2020
1 parent da1b28a commit 0cefcc6
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions pkgs/development/python-modules/progressbar2/default.nix
Expand Up @@ -2,15 +2,7 @@
, python
, buildPythonPackage
, fetchPypi
, pytest
, python-utils
, sphinx
, flake8
, pytest-flakes
, pytestcov
, pytestcache
, pytestrunner
, freezegun
}:

buildPythonPackage rec {
Expand All @@ -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/";
Expand Down

0 comments on commit 0cefcc6

Please sign in to comment.