2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-26 19:14:03 +00:00
|
|
|
, futures ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy27
|
|
|
|
, isPyPy
|
|
|
|
, jinja2
|
|
|
|
, lib
|
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, nodejs
|
|
|
|
, packaging
|
|
|
|
, pillow
|
2020-06-02 18:00:15 +00:00
|
|
|
#, pytestCheckHook#
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
|
|
|
, python-dateutil
|
|
|
|
, pyyaml
|
|
|
|
, selenium
|
|
|
|
, six
|
|
|
|
, substituteAll
|
|
|
|
, tornado
|
2020-06-02 18:00:15 +00:00
|
|
|
, typing-extensions
|
|
|
|
, pytz
|
|
|
|
, flaky
|
|
|
|
, networkx
|
|
|
|
, beautifulsoup4
|
|
|
|
, requests
|
|
|
|
, nbconvert
|
|
|
|
, icalendar
|
|
|
|
, pandas
|
|
|
|
, pythonImportsCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
, contourpy
|
|
|
|
, xyzservices
|
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
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.0.3";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash= "sha256-HChHHvXmEQulvtUTE3/SYFTrxEVLx2hlDq7vxTuJioo=";
|
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
|
|
|
disabled = isPyPy || isPy27;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonImportsCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bokeh"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
pillow
|
|
|
|
selenium
|
2020-06-02 18:00:15 +00:00
|
|
|
pytz
|
|
|
|
flaky
|
|
|
|
networkx
|
|
|
|
beautifulsoup4
|
|
|
|
requests
|
|
|
|
nbconvert
|
|
|
|
icalendar
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
contourpy
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
|
|
|
jinja2
|
|
|
|
python-dateutil
|
|
|
|
six
|
|
|
|
pyyaml
|
|
|
|
tornado
|
|
|
|
numpy
|
2023-01-20 10:41:00 +00:00
|
|
|
pandas
|
2020-04-24 23:36:52 +00:00
|
|
|
packaging
|
2020-06-02 18:00:15 +00:00
|
|
|
typing-extensions
|
2023-01-20 10:41:00 +00:00
|
|
|
xyzservices
|
2020-04-24 23:36:52 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals ( isPy27 ) [
|
|
|
|
futures
|
|
|
|
];
|
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
# This test suite is a complete pain. Somehow it can't find its fixtures.
|
|
|
|
doCheck = false;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|