about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/alive-progress/default.nix
blob: b10b056f292a087239f91a7dbfd406b477b82361 (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
38
39
40
41
42
{ lib
, about-time
, buildPythonPackage
, click
, fetchFromGitHub
, grapheme
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "alive-progress";
  version = "3.1.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "rsalmei";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-27PgxQ9nw8p5hfaSf/jPYG7419o3i8B8R09o93szSOk=";
  };

  propagatedBuildInputs = [
    about-time
    grapheme
  ];

  nativeCheckInputs = [
    click
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "alive_progress"
  ];

  meta = with lib; {
    description = "A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations";
    homepage = "https://github.com/rsalmei/alive-progress";
    license = licenses.mit;
    maintainers = with maintainers; [ thiagokokada ];
  };
}