1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 future, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "sparklines"; 11 version = "0.5.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "deeplook"; 16 repo = pname; 17 tag = "v${version}"; 18 sha256 = "sha256-oit1bDqP96wwfTRCV8V0N9P/+pkdW2WYOWT6u3lb4Xs="; 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}