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