2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
colorama,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "termgraph" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python command-line tool which draws basic graphs in the terminal";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "termgraph";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/mkaz/termgraph";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|