1{ lib
2, buildPythonPackage
3, fetchPypi
4, freezegun
5, pytestCheckHook
6, python-utils
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "progressbar2";
12 version = "4.2.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-E5OSL8tkWYlErUV1afvrSzrBie9Qta25zvMoTofjlM4=";
20 };
21
22 postPatch = ''
23 sed -i "/-cov/d" pytest.ini
24 '';
25
26 propagatedBuildInputs = [
27 python-utils
28 ];
29
30 checkInputs = [
31 freezegun
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "progressbar"
37 ];
38
39 meta = with lib; {
40 description = "Text progressbar library";
41 homepage = "https://progressbar-2.readthedocs.io/";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ ashgillman turion ];
44 };
45}