Merge pull request #91493 from turion/91492_progressbar2

pythonPackages.progressbar2: Fix checkPhase
This commit is contained in:
Mario Rodas 2020-06-27 20:08:58 -05:00 committed by GitHub
commit 1b2c01a269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "progressbar2"; pname = "progressbar2";
version = "3.51.3"; version = "3.51.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ecf687696dd449067f69ef6730c4d4a0189db1f8d1aad9e376358354631d5b2c"; sha256 = "0dnfw8mdrz78gck4ibnv64cinbp5f7kw349wjgpwv53z6p7jiwhk";
}; };
propagatedBuildInputs = [ python-utils ]; propagatedBuildInputs = [ python-utils ];
@ -29,10 +29,10 @@ buildPythonPackage rec {
pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov
pytestcache freezegun pytestcache freezegun
]; ];
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory # ignore tests on the nix wrapped setup.py
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
${python.interpreter} setup.py test --addopts "--ignore=.eggs" ${python.interpreter} setup.py test
runHook postCheck runHook postCheck
''; '';
@ -40,6 +40,6 @@ buildPythonPackage rec {
homepage = "https://progressbar-2.readthedocs.io/en/latest/"; homepage = "https://progressbar-2.readthedocs.io/en/latest/";
description = "Text progressbar library for python"; description = "Text progressbar library for python";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ashgillman ]; maintainers = with maintainers; [ ashgillman turion ];
}; };
} }