about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/termgraph/default.nix
blob: 2e9f0a8c22bf77173d1556020783960bc4de4468 (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
{ buildPythonPackage
, colorama
, fetchFromGitHub
, lib
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "termgraph";
  version = "0.5.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mkaz";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-0J9mEpDIdNEYwO+A+HBOaSw+Ct+HsbSPwGQYuYH6NN8=";
  };

  propagatedBuildInputs = [ colorama ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "termgraph" ];

  meta = with lib; {
    description = "A python command-line tool which draws basic graphs in the terminal";
    mainProgram = "termgraph";
    homepage = "https://github.com/mkaz/termgraph";
    license = licenses.mit;
    maintainers = with maintainers; [ samuela ];
  };
}