1{
2 lib,
3 about-time,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 grapheme,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "alive-progress";
15 version = "3.1.5";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "rsalmei";
22 repo = "alive-progress";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-yJhl0QrMHET9ISDc/D5AEQ7dTJkmcV2SWqy/xmG18uY=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 about-time
31 grapheme
32 ];
33
34 nativeCheckInputs = [
35 click
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "alive_progress" ];
40
41 meta = with lib; {
42 description = "A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations";
43 homepage = "https://github.com/rsalmei/alive-progress";
44 changelog = "https://github.com/rsalmei/alive-progress/blob/v${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ thiagokokada ];
47 };
48}