1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, blessed
6, prefixed
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "enlighten";
12 version = "1.10.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "3391916586364aedced5d6926482b48745e4948f822de096d32258ba238ea984";
17 };
18
19 propagatedBuildInputs = [
20 blessed
21 prefixed
22 ];
23 checkInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "enlighten" ];
26 disabledTests =
27 # https://github.com/Rockhopper-Technologies/enlighten/issues/44
28 lib.optional stdenv.isDarwin "test_autorefresh"
29 ;
30
31 meta = with lib; {
32 description = "Enlighten Progress Bar for Python Console Apps";
33 homepage = "https://github.com/Rockhopper-Technologies/enlighten";
34 license = with licenses; [ mpl20 ];
35 maintainers = with maintainers; [ veprbl ];
36 };
37}