2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, substituteAll
|
|
|
|
, colorama
|
|
|
|
, contourpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, jinja2
|
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, nodejs
|
|
|
|
, packaging
|
2023-10-09 19:29:22 +00:00
|
|
|
, pandas
|
2020-04-24 23:36:52 +00:00
|
|
|
, pillow
|
|
|
|
, tornado
|
2023-10-09 19:29:22 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
|
|
|
, setuptools-git-versioning
|
|
|
|
, xyzservices
|
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
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
2021-04-12 18:23:04 +00:00
|
|
|
# update together with panel which is not straightforward
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.3.3";
|
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-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-bs5vACY/LSBDok6vnbdab4YO/Ioflt9mMYb+PrJpLdM=";
|
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";
|
|
|
|
homepage = "https://github.com/bokeh/bokeh";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|