1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, future
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "sparklines";
10 version = "0.4.2";
11
12 src = fetchFromGitHub {
13 owner = "deeplook";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "1hfxp5c4wbyddy7fgmnda819w3dia3i6gqb2323dr2z016p84r7l";
17 };
18
19 propagatedBuildInputs = [ future ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "sparklines" ];
24
25 meta = with lib; {
26 description = "This Python package implements Edward Tufte's concept of sparklines, but limited to text only";
27 homepage = "https://github.com/deeplook/sparklines";
28 maintainers = with maintainers; [ rhoriguchi ];
29 license = licenses.gpl3Only;
30 };
31}