depot/third_party/nixpkgs/pkgs/development/python-modules/progressbar2/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

45 lines
784 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, freezegun
, pytestCheckHook
, python-utils
, pythonOlder
}:
buildPythonPackage rec {
pname = "progressbar2";
version = "4.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-E5OSL8tkWYlErUV1afvrSzrBie9Qta25zvMoTofjlM4=";
};
postPatch = ''
sed -i "/-cov/d" pytest.ini
'';
propagatedBuildInputs = [
python-utils
];
checkInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [
"progressbar"
];
meta = with lib; {
description = "Text progressbar library";
homepage = "https://progressbar-2.readthedocs.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ ashgillman turion ];
};
}