summary refs log tree commit diff
path: root/pkgs/development/python-modules/enlighten/default.nix
blob: 8f58720bd264a7b529fe79ca39fcac4ec853230a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, blessed
, prefixed
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "enlighten";
  version = "1.10.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "3391916586364aedced5d6926482b48745e4948f822de096d32258ba238ea984";
  };

  propagatedBuildInputs = [
    blessed
    prefixed
  ];
  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "enlighten" ];
  disabledTests =
    # https://github.com/Rockhopper-Technologies/enlighten/issues/44
    lib.optional stdenv.isDarwin "test_autorefresh"
    ;

  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 ];
  };
}