2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, python-utils
|
|
|
|
, sphinx
|
|
|
|
, flake8
|
|
|
|
, pytestpep8
|
|
|
|
, pytest-flakes
|
|
|
|
, pytestcov
|
|
|
|
, pytestcache
|
|
|
|
, pytestrunner
|
|
|
|
, freezegun
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "progressbar2";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "3.53.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "ef72be284e7f2b61ac0894b44165926f13f5d995b2bf3cd8a8dedc6224b255a7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python-utils ];
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
checkInputs = [
|
|
|
|
pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov
|
|
|
|
pytestcache freezegun
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
# ignore tests on the nix wrapped setup.py
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2020-07-18 16:06:22 +00:00
|
|
|
${python.interpreter} setup.py test
|
2020-04-24 23:36:52 +00:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://progressbar-2.readthedocs.io/en/latest/";
|
|
|
|
description = "Text progressbar library for python";
|
|
|
|
license = licenses.bsd3;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ ashgillman turion ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|