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