2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-01-16 18:46:30 +10:00
|
|
|
, buildPythonPackage
|
2019-01-22 15:53:25 +01:00
|
|
|
, fetchPypi
|
2022-10-30 10:05:03 +01:00
|
|
|
, freezegun
|
|
|
|
, pytestCheckHook
|
2018-01-16 18:46:30 +10:00
|
|
|
, python-utils
|
2022-10-30 10:05:03 +01:00
|
|
|
, pythonOlder
|
2018-01-16 18:46:30 +10:00
|
|
|
}:
|
|
|
|
|
2018-01-17 12:58:27 +10:00
|
|
|
buildPythonPackage rec {
|
2018-01-16 18:46:30 +10:00
|
|
|
pname = "progressbar2";
|
2022-10-30 05:33:45 +00:00
|
|
|
version = "4.2.0";
|
2022-10-30 10:05:03 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-01-16 18:46:30 +10:00
|
|
|
|
2019-01-22 15:53:25 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-30 10:05:03 +01:00
|
|
|
hash = "sha256-E5OSL8tkWYlErUV1afvrSzrBie9Qta25zvMoTofjlM4=";
|
2018-01-16 18:46:30 +10:00
|
|
|
};
|
|
|
|
|
2022-10-30 10:05:03 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/-cov/d" pytest.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-12-22 17:55:46 +01:00
|
|
|
|
2022-10-30 10:05:03 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"progressbar"
|
|
|
|
];
|
2018-01-16 18:46:30 +10:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-10-30 10:05:03 +01:00
|
|
|
description = "Text progressbar library";
|
|
|
|
homepage = "https://progressbar-2.readthedocs.io/";
|
2018-01-16 18:46:30 +10:00
|
|
|
license = licenses.bsd3;
|
2020-06-25 15:36:07 +02:00
|
|
|
maintainers = with maintainers; [ ashgillman turion ];
|
2018-01-16 18:46:30 +10:00
|
|
|
};
|
2018-01-17 12:58:27 +10:00
|
|
|
}
|