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:
parent
da1b28ab8f
commit
0cefcc625d
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user