about summary refs log tree commit diff
path: root/pkgs/development/python-modules/enlighten/default.nix
blob: 3c786d8691557db8730066ce090e7d4208195553 (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.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "7a5b83cd0f4d095e59d80c648ebb5f7ffca0cd8bcf7ae6639828ee1ad000632a";
  };

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