2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, buildPythonPackage
|
|
|
|
, networkx
|
|
|
|
, jinja2
|
|
|
|
, ipython
|
|
|
|
, jsonpickle
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, numpy
|
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvis";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.2";
|
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WestHealth";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-eo9Mk2c0hrBarCrzwmkXha3Qt4Bl1qR7Lhl9EkUx96E=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
networkx
|
|
|
|
ipython
|
|
|
|
jsonpickle
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
numpy
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# jupyter integration test with selenium and webdriver_manager
|
|
|
|
"pyvis/tests/test_html.py"
|
|
|
|
];
|
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-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ pbsds ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|