2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
networkx,
|
|
|
|
jinja2,
|
|
|
|
ipython,
|
|
|
|
jsonpickle,
|
|
|
|
pytestCheckHook,
|
|
|
|
numpy,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvis";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
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
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|