2018-01-16 08:46:30 +00:00
|
|
|
{ stdenv
|
2018-01-17 02:58:27 +00:00
|
|
|
, python
|
2018-01-16 08:46:30 +00:00
|
|
|
, buildPythonPackage
|
2019-01-22 14:53:25 +00:00
|
|
|
, fetchPypi
|
2018-01-16 08:46:30 +00:00
|
|
|
, pytest
|
|
|
|
, python-utils
|
2018-01-17 02:58:27 +00:00
|
|
|
, sphinx
|
|
|
|
, flake8
|
|
|
|
, pytestpep8
|
2019-02-16 08:02:30 +00:00
|
|
|
, pytest-flakes
|
2018-01-17 02:58:27 +00:00
|
|
|
, pytestcov
|
|
|
|
, pytestcache
|
2018-01-17 10:46:27 +00:00
|
|
|
, pytestrunner
|
2019-01-22 14:53:25 +00:00
|
|
|
, freezegun
|
2018-01-16 08:46:30 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-17 02:58:27 +00:00
|
|
|
buildPythonPackage rec {
|
2018-01-16 08:46:30 +00:00
|
|
|
pname = "progressbar2";
|
2020-06-26 09:01:40 +01:00
|
|
|
version = "3.51.4";
|
2018-01-16 08:46:30 +00:00
|
|
|
|
2019-01-22 14:53:25 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-26 09:01:40 +01:00
|
|
|
sha256 = "0dnfw8mdrz78gck4ibnv64cinbp5f7kw349wjgpwv53z6p7jiwhk";
|
2018-01-16 08:46:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python-utils ];
|
2018-01-17 10:46:27 +00:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
2018-01-17 02:58:27 +00:00
|
|
|
checkInputs = [
|
2019-02-16 08:02:30 +00:00
|
|
|
pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov
|
2019-01-22 14:53:25 +00:00
|
|
|
pytestcache freezegun
|
2018-01-17 02:58:27 +00:00
|
|
|
];
|
2020-06-25 14:36:07 +01:00
|
|
|
# ignore tests on the nix wrapped setup.py
|
2018-01-17 02:58:27 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2020-06-25 14:36:07 +01:00
|
|
|
${python.interpreter} setup.py test
|
2018-01-17 02:58:27 +00:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
2018-01-16 08:46:30 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://progressbar-2.readthedocs.io/en/latest/";
|
2018-01-16 08:46:30 +00:00
|
|
|
description = "Text progressbar library for python";
|
|
|
|
license = licenses.bsd3;
|
2020-06-25 14:36:07 +01:00
|
|
|
maintainers = with maintainers; [ ashgillman turion ];
|
2018-01-16 08:46:30 +00:00
|
|
|
};
|
2018-01-17 02:58:27 +00:00
|
|
|
}
|