2021-07-21 03:04:00 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, blessed
|
|
|
|
, prefixed
|
|
|
|
, pytestCheckHook
|
2022-02-20 11:37:07 +00:00
|
|
|
, pythonOlder
|
2021-07-21 03:04:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enlighten";
|
2022-01-14 00:58:18 +00:00
|
|
|
version = "1.10.2";
|
2022-02-20 11:37:07 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-21 03:04:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 11:37:07 +00:00
|
|
|
hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo=";
|
2021-07-21 03:04:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
prefixed
|
|
|
|
];
|
|
|
|
|
2022-02-20 11:37:07 +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-21 03:04:00 +01:00
|
|
|
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
|
2022-02-20 11:37:07 +00:00
|
|
|
"test_autorefresh"
|
|
|
|
];
|
2021-07-21 03:04:00 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|