2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, blessed
|
|
|
|
, prefixed
|
|
|
|
, pytestCheckHook
|
2022-02-21 08:47:16 +00:00
|
|
|
, pythonOlder
|
2021-07-24 12:14:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enlighten";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.12.2";
|
2022-02-21 08:47:16 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-jAn2VxEZdGzuZ3bL9OfASkjoiPTMrm2zd6WHZ0HwiZ8=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
prefixed
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-21 08:47:16 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"enlighten"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
|
|
|
|
"test_init"
|
2022-10-30 15:09:59 +00:00
|
|
|
# AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0)
|
|
|
|
"test_floats_prefixed"
|
|
|
|
"test_subcounter_prefixed"
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-07-24 12:14:16 +00:00
|
|
|
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
|
2022-02-21 08:47:16 +00:00
|
|
|
"test_autorefresh"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Enlighten Progress Bar for Python Console Apps";
|
|
|
|
homepage = "https://github.com/Rockhopper-Technologies/enlighten";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/Rockhopper-Technologies/enlighten/releases/tag/${version}";
|
2021-07-24 12:14:16 +00:00
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|