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

53 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, blessed
, prefixed
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "enlighten";
version = "1.11.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-V6vZij0/g0hO+fkfklX00jyLMJfs22R8e5sASdYAt/g=";
};
propagatedBuildInputs = [
blessed
prefixed
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"enlighten"
];
disabledTests = [
# AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
"test_init"
# AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0)
"test_floats_prefixed"
"test_subcounter_prefixed"
] ++ lib.optionals stdenv.isDarwin [
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
"test_autorefresh"
];
meta = with lib; {
description = "Enlighten Progress Bar for Python Console Apps";
homepage = "https://github.com/Rockhopper-Technologies/enlighten";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ veprbl ];
};
}