1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python-slugify, 6 jinja2, 7 setuptools, 8 coverage, 9}: 10 11buildPythonPackage rec { 12 pname = "python-nvd3"; 13 version = "0.15.0"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "areski"; 18 repo = "python-nvd3"; 19 rev = "dc8e772597ed72f413b229856fc9a3318e57fcfc"; 20 sha256 = "1vjnicszcc9j0rgb58104fk9sry5xad1xli64jana9bkx42c6x1v"; 21 }; 22 23 propagatedBuildInputs = [ 24 python-slugify 25 jinja2 26 setuptools 27 ]; 28 nativeCheckInputs = [ coverage ]; 29 30 checkPhase = '' 31 coverage run --source=nvd3 setup.py test 32 ''; 33 34 meta = with lib; { 35 homepage = "https://github.com/areski/python-nvd3"; 36 description = "Python Wrapper for NVD3 - It's time for beautiful charts"; 37 mainProgram = "nvd3"; 38 license = licenses.mit; 39 maintainers = [ maintainers.ivan-tkatchev ]; 40 }; 41}