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";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.10.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;
|
2022-02-21 08:47:16 +00:00
|
|
|
hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
prefixed
|
|
|
|
];
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"enlighten"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
|
|
|
|
"test_init"
|
|
|
|
] ++ lib.optional 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";
|
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|