Skip to content

Commit 0cefcc6

Browse files
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.
1 parent da1b28a commit 0cefcc6

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

  • pkgs/development/python-modules/progressbar2

pkgs/development/python-modules/progressbar2/default.nix

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
, python
33
, buildPythonPackage
44
, fetchPypi
5-
, pytest
65
, python-utils
7-
, sphinx
8-
, flake8
9-
, pytest-flakes
10-
, pytestcov
11-
, pytestcache
12-
, pytestrunner
13-
, freezegun
146
}:
157

168
buildPythonPackage rec {
@@ -23,17 +15,12 @@ buildPythonPackage rec {
2315
};
2416

2517
propagatedBuildInputs = [ python-utils ];
26-
nativeBuildInputs = [ pytestrunner ];
27-
checkInputs = [
28-
pytest sphinx flake8 pytest-flakes pytestcov
29-
pytestcache freezegun
30-
];
31-
# ignore tests on the nix wrapped setup.py
32-
checkPhase = ''
33-
runHook preCheck
34-
${python.interpreter} setup.py test
35-
runHook postCheck
36-
'';
18+
19+
# depends on unmaintained pytest-pep8
20+
# https://github.com/WoLpH/python-progressbar/issues/241
21+
doCheck = false;
22+
23+
pythonImportsCheck = [ "progressbar" ];
3724

3825
meta = with stdenv.lib; {
3926
homepage = "https://progressbar-2.readthedocs.io/en/latest/";

0 commit comments

Comments
 (0)