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