2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
substituteAll,
|
|
|
|
colorama,
|
|
|
|
contourpy,
|
|
|
|
jinja2,
|
|
|
|
numpy,
|
|
|
|
nodejs,
|
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
tornado,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
setuptools-git-versioning,
|
|
|
|
xyzservices,
|
|
|
|
beautifulsoup4,
|
|
|
|
channels,
|
|
|
|
click,
|
|
|
|
colorcet,
|
|
|
|
coverage,
|
|
|
|
firefox,
|
|
|
|
geckodriver,
|
|
|
|
isort,
|
|
|
|
json5,
|
|
|
|
nbconvert,
|
|
|
|
networkx,
|
|
|
|
psutil,
|
|
|
|
pygments,
|
|
|
|
pygraphviz,
|
|
|
|
pytest,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-xdist,
|
|
|
|
pytest-timeout,
|
|
|
|
requests,
|
|
|
|
scipy,
|
|
|
|
selenium,
|
|
|
|
toml,
|
|
|
|
typing-extensions,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
2021-04-12 18:23:04 +00:00
|
|
|
# update together with panel which is not straightforward
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.4.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-2CSWHkJlNnsHUM5YsH5WStC4PKZLM1UhzTQh6bnxDYk=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src_test = fetchFromGitHub {
|
|
|
|
owner = "bokeh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-PK9iLOCcivr4oF9Riq73dzxGfxzWRk3bdrCCpRrTv5g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-nodejs-npmjs-paths.patch;
|
|
|
|
node_bin = "${nodejs}/bin/node";
|
|
|
|
npm_bin = "${nodejs}/bin/npm";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
colorama
|
|
|
|
nodejs
|
|
|
|
setuptools
|
|
|
|
setuptools-git-versioning
|
2020-06-02 18:00:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
pytestCheckHook
|
2020-06-02 18:00:15 +00:00
|
|
|
beautifulsoup4
|
2023-10-09 19:29:22 +00:00
|
|
|
channels
|
|
|
|
click
|
|
|
|
colorcet
|
|
|
|
coverage
|
|
|
|
firefox
|
|
|
|
geckodriver
|
|
|
|
isort
|
|
|
|
json5
|
2020-06-02 18:00:15 +00:00
|
|
|
nbconvert
|
2023-10-09 19:29:22 +00:00
|
|
|
networkx
|
|
|
|
psutil
|
|
|
|
pygments
|
|
|
|
pygraphviz
|
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-xdist
|
|
|
|
pytest-timeout
|
|
|
|
requests
|
|
|
|
scipy
|
|
|
|
selenium
|
|
|
|
toml
|
|
|
|
typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
2023-10-09 19:29:22 +00:00
|
|
|
contourpy
|
2020-04-24 23:36:52 +00:00
|
|
|
numpy
|
|
|
|
packaging
|
2023-10-09 19:29:22 +00:00
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
pyyaml
|
|
|
|
tornado
|
|
|
|
xyzservices
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
doCheck = false; # need more work
|
|
|
|
pytestFlagsArray = "tests/test_defaults.py";
|
|
|
|
pythonImportsCheck = [ "bokeh" ];
|
|
|
|
preCheck = ''
|
|
|
|
cp -rv ''${src_test}/tests/* ./tests/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Statistical and novel interactive HTML plots for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bokeh";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bokeh/bokeh";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|