1{
2 buildPythonPackage,
3 colorama,
4 fetchFromGitHub,
5 lib,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "termgraph";
11 version = "0.5.3";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "mkaz";
16 repo = "termgraph";
17 tag = "v${version}";
18 hash = "sha256-0J9mEpDIdNEYwO+A+HBOaSw+Ct+HsbSPwGQYuYH6NN8=";
19 };
20
21 propagatedBuildInputs = [ colorama ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "termgraph" ];
26
27 meta = with lib; {
28 description = "Python command-line tool which draws basic graphs in the terminal";
29 mainProgram = "termgraph";
30 homepage = "https://github.com/mkaz/termgraph";
31 license = licenses.mit;
32 maintainers = with maintainers; [ samuela ];
33 };
34}