2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
future,
|
|
|
|
pytestCheckHook,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sparklines";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deeplook";
|
|
|
|
repo = pname;
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-oit1bDqP96wwfTRCV8V0N9P/+pkdW2WYOWT6u3lb4Xs=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "sparklines" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This Python package implements Edward Tufte's concept of sparklines, but limited to text only";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sparklines";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/deeplook/sparklines";
|
|
|
|
maintainers = with maintainers; [ rhoriguchi ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
};
|
|
|
|
}
|