1{ lib
2, fetchFromGitHub
3, fetchpatch
4, buildPythonPackage
5, networkx
6, jinja2
7, ipython
8, jsonpickle
9, numpy }:
10
11buildPythonPackage rec {
12 pname = "pyvis";
13 version = "unstable-2021-04-29";
14
15 # We use unstable, as test are failing for 0.1.9
16 src = fetchFromGitHub {
17 owner = "WestHealth";
18 repo = pname;
19 rev = "4c521302abf9725dcbe7f59962baf85360b2718d";
20 sha256 = "sha256-DYbHQpxtSfiLbzmBGclym/ChM0WLBzSEC/3phDTtGY8=";
21 };
22
23 patches = [
24 # Remove when https://github.com/WestHealth/pyvis/pull/101 is merged.
25 (fetchpatch {
26 url = "https://github.com/WestHealth/pyvis/commit/158a34de45f970b17ffd746c6e705b89128e2445.patch";
27 sha256 = "sha256-zK72nrnn5YLGNW6PKYUyHry5ORCdt1T1oH6n1X64DKg=";
28 })
29 ];
30
31 propagatedBuildInputs = [ networkx jinja2 ipython jsonpickle ];
32
33 checkInputs = [ numpy ];
34
35 pythonImportsCheck = [ "pyvis" ];
36
37 meta = with lib; {
38 homepage = "https://github.com/WestHealth/pyvis";
39 description = "Python package for creating and visualizing interactive network graphs";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ erictapen ];
42 };
43}