diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-nvd3/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/python-nvd3/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-nvd3/default.nix b/nixpkgs/pkgs/development/python-modules/python-nvd3/default.nix new file mode 100644 index 000000000000..6ad6b6d56de0 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/python-nvd3/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, fetchFromGitHub, python-slugify, jinja2, setuptools, coverage }: + +buildPythonPackage rec { + pname = "python-nvd3"; + version = "0.15.0"; + + src = fetchFromGitHub { + owner = "areski"; + repo = "python-nvd3"; + rev = "dc8e772597ed72f413b229856fc9a3318e57fcfc"; + sha256 = "1vjnicszcc9j0rgb58104fk9sry5xad1xli64jana9bkx42c6x1v"; + }; + + propagatedBuildInputs = [ python-slugify jinja2 setuptools ]; + nativeCheckInputs = [ coverage ]; + + checkPhase = '' + coverage run --source=nvd3 setup.py test + ''; + + meta = with lib; { + homepage = "https://github.com/areski/python-nvd3"; + description = "Python Wrapper for NVD3 - It's time for beautiful charts"; + license = licenses.mit; + maintainers = [ maintainers.ivan-tkatchev ]; + }; +} |