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.
This commit is contained in:
sternenseemann 2020-12-22 17:55:46 +01:00
parent da1b28ab8f
commit 0cefcc625d

View File

@ -2,15 +2,7 @@
, python , python
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytest
, python-utils , python-utils
, sphinx
, flake8
, pytest-flakes
, pytestcov
, pytestcache
, pytestrunner
, freezegun
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -23,17 +15,12 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ python-utils ]; propagatedBuildInputs = [ python-utils ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ # depends on unmaintained pytest-pep8
pytest sphinx flake8 pytest-flakes pytestcov # https://github.com/WoLpH/python-progressbar/issues/241
pytestcache freezegun doCheck = false;
];
# ignore tests on the nix wrapped setup.py pythonImportsCheck = [ "progressbar" ];
checkPhase = ''
runHook preCheck
${python.interpreter} setup.py test
runHook postCheck
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://progressbar-2.readthedocs.io/en/latest/"; homepage = "https://progressbar-2.readthedocs.io/en/latest/";