blob: c4698744531b9e13bf025b38d4dc5872e01f6d24 (
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
|
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, networkx
, jinja2
, ipython
, jsonpickle
, numpy
}:
buildPythonPackage rec {
pname = "pyvis";
version = "0.2.1";
src = fetchFromGitHub {
owner = "WestHealth";
repo = pname;
rev = "v${version}";
hash = "sha256-cER5XYxnURzRLtrisWBu2kxtOiRqgaRTJYyaCMh2qqE=";
};
patches = [
# Fix test: https://github.com/WestHealth/pyvis/issues/138
(fetchpatch {
url = "https://github.com/WestHealth/pyvis/commit/eaa24b882401e2e74353efa78bf4e71a880cfc47.patch";
hash = "sha256-hyDypavoCM36SiuQda1U4FLUPdAjTIMtaeZ0KqfHKzI=";
})
];
propagatedBuildInputs = [ networkx jinja2 ipython jsonpickle ];
nativeCheckInputs = [ numpy ];
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; [ ];
};
}
|