summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyvis/default.nix
blob: a9fea2dc683030cc65e6374be8115ce3adda95f1 (plain) (blame)
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
43
44
45
46
47
48
49
50
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, networkx
, jinja2
, ipython
, jsonpickle
, pytestCheckHook
, numpy
}:

buildPythonPackage rec {
  pname = "pyvis";
  version = "0.3.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "WestHealth";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-eo9Mk2c0hrBarCrzwmkXha3Qt4Bl1qR7Lhl9EkUx96E=";
  };

  propagatedBuildInputs = [
    jinja2
    networkx
    ipython
    jsonpickle
  ];

  nativeCheckInputs = [
    pytestCheckHook
    numpy
  ];

  disabledTestPaths = [
    # jupyter integration test with selenium and webdriver_manager
    "pyvis/tests/test_html.py"
  ];

  pythonImportsCheck = [ "pyvis" ];

  meta = with lib; {
    homepage = "https://github.com/WestHealth/pyvis";
    description = "Python package for creating and visualizing interactive network graphs";
    license = licenses.bsd3;
    maintainers = with maintainers; [ pbsds ];
  };
}