2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, buildPythonPackage
|
|
|
|
, networkx
|
|
|
|
, jinja2
|
|
|
|
, ipython
|
|
|
|
, jsonpickle
|
2022-04-27 09:35:20 +00:00
|
|
|
, numpy
|
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvis";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.2.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WestHealth";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-cER5XYxnURzRLtrisWBu2kxtOiRqgaRTJYyaCMh2qqE=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Fix test: https://github.com/WestHealth/pyvis/issues/138
|
2021-06-28 23:13:55 +00:00
|
|
|
(fetchpatch {
|
2022-04-27 09:35:20 +00:00
|
|
|
url = "https://github.com/WestHealth/pyvis/commit/eaa24b882401e2e74353efa78bf4e71a880cfc47.patch";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-hyDypavoCM36SiuQda1U4FLUPdAjTIMtaeZ0KqfHKzI=";
|
2021-06-28 23:13:55 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ networkx jinja2 ipython jsonpickle ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ numpy ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyvis" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/WestHealth/pyvis";
|
|
|
|
description = "Python package for creating and visualizing interactive network graphs";
|
|
|
|
license = licenses.bsd3;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|