summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-nvd3/default.nix
blob: 54006017fd5824b7174289eb913b9110d71f955f (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
42
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  python-slugify,
  jinja2,
  setuptools,
  pytestCheckHook,
}:

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

  src = fetchFromGitHub {
    owner = "areski";
    repo = "python-nvd3";
    tag = "v${version}";
    hash = "sha256-+J0lHAOjX3hbymjESQ6WpEnly+1Lv9o0ucIpBxTuS6s=";
  };

  build-system = [ setuptools ];

  dependencies = [
    python-slugify
    jinja2
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "tests.py" ];

  meta = {
    description = "Python Wrapper for NVD3";
    homepage = "https://github.com/areski/python-nvd3";
    changelog = "https://github.com/areski/python-nvd3/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ivan-tkatchev ];
    mainProgram = "nvd3";
  };
}