summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-nvd3/default.nix
blob: 1ab84159b4374fceed4038e7ddfc7d8dcb1054c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  python-slugify,
  jinja2,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "python-nvd3";
  version = "0.15.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "areski";
    repo = "python-nvd3";
    rev = "dc8e772597ed72f413b229856fc9a3318e57fcfc";
    sha256 = "1vjnicszcc9j0rgb58104fk9sry5xad1xli64jana9bkx42c6x1v";
  };

  build-system = [ setuptools ];

  dependencies = [
    python-slugify
    jinja2
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pytestFlagsArray = [ "tests.py" ];

  meta = {
    homepage = "https://github.com/areski/python-nvd3";
    description = "Python Wrapper for NVD3 - It's time for beautiful charts";
    mainProgram = "nvd3";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ivan-tkatchev ];
  };
}