biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / enlighten / default.nix
blobca0916c610a4b76c2b832207a356e7c90873b4c6
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchPypi,
6   blessed,
7   prefixed,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "enlighten";
14   version = "1.12.4";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-dfPZK0ng715FT8Gg853Aq49tmUbL5TTbPe0wECF9W18=";
22   };
24   propagatedBuildInputs = [
25     blessed
26     prefixed
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "enlighten" ];
33   disabledTests =
34     [
35       # AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
36       "test_init"
37       # AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0)
38       "test_floats_prefixed"
39       "test_subcounter_prefixed"
40     ]
41     ++ lib.optionals stdenv.hostPlatform.isDarwin [
42       # https://github.com/Rockhopper-Technologies/enlighten/issues/44
43       "test_autorefresh"
44     ];
46   meta = with lib; {
47     description = "Enlighten Progress Bar for Python Console Apps";
48     homepage = "https://github.com/Rockhopper-Technologies/enlighten";
49     changelog = "https://github.com/Rockhopper-Technologies/enlighten/releases/tag/${version}";
50     license = with licenses; [ mpl20 ];
51     maintainers = with maintainers; [ veprbl ];
52   };