2019-09-01 06:32:43 +00:00
|
|
|
{ buildPythonPackage
|
2017-09-05 09:16:41 +00:00
|
|
|
, fetchPypi
|
2021-03-24 16:45:56 +00:00
|
|
|
, futures ? null
|
2019-12-31 14:50:13 +00:00
|
|
|
, isPy27
|
2017-09-05 09:16:41 +00:00
|
|
|
, isPyPy
|
|
|
|
, jinja2
|
2019-09-01 06:32:43 +00:00
|
|
|
, lib
|
|
|
|
, mock
|
2017-09-05 09:16:41 +00:00
|
|
|
, numpy
|
2019-09-01 06:32:43 +00:00
|
|
|
, nodejs
|
2019-10-12 10:13:12 +00:00
|
|
|
, packaging
|
2017-09-05 09:16:41 +00:00
|
|
|
, pillow
|
2020-04-22 08:40:05 +00:00
|
|
|
#, pytestCheckHook#
|
2019-09-01 06:32:43 +00:00
|
|
|
, pytest
|
|
|
|
, python-dateutil
|
|
|
|
, pyyaml
|
2017-09-05 09:16:41 +00:00
|
|
|
, selenium
|
2019-09-01 06:32:43 +00:00
|
|
|
, six
|
|
|
|
, substituteAll
|
|
|
|
, tornado
|
2020-04-22 08:40:05 +00:00
|
|
|
, typing-extensions
|
|
|
|
, pytz
|
|
|
|
, flaky
|
|
|
|
, networkx
|
|
|
|
, beautifulsoup4
|
|
|
|
, requests
|
|
|
|
, nbconvert
|
|
|
|
, icalendar
|
|
|
|
, pandas
|
|
|
|
, pythonImportsCheckHook
|
2017-09-05 09:16:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
2021-04-07 15:40:32 +00:00
|
|
|
# update together with panel which is not straightforward
|
2021-11-25 22:46:39 +00:00
|
|
|
version = "2.4.2";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-25 22:46:39 +00:00
|
|
|
sha256 = "f0a4b53364ed3b7eb936c5cb1a4f4132369e394c7ae0a8ef420459410958033d";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2019-09-01 06:32:43 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-nodejs-npmjs-paths.patch;
|
|
|
|
node_bin = "${nodejs}/bin/node";
|
|
|
|
npm_bin = "${nodejs}/bin/npm";
|
|
|
|
})
|
|
|
|
];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2020-04-22 08:40:05 +00:00
|
|
|
disabled = isPyPy || isPy27;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonImportsCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bokeh"
|
|
|
|
];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2019-12-31 14:50:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
pillow
|
|
|
|
selenium
|
2020-04-22 08:40:05 +00:00
|
|
|
pytz
|
|
|
|
flaky
|
|
|
|
networkx
|
|
|
|
beautifulsoup4
|
|
|
|
requests
|
|
|
|
nbconvert
|
|
|
|
icalendar
|
|
|
|
pandas
|
2019-12-31 14:50:13 +00:00
|
|
|
];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-10-26 19:43:23 +00:00
|
|
|
pillow
|
2017-09-05 09:16:41 +00:00
|
|
|
jinja2
|
2019-09-01 06:32:43 +00:00
|
|
|
python-dateutil
|
2017-09-05 09:16:41 +00:00
|
|
|
six
|
|
|
|
pyyaml
|
|
|
|
tornado
|
2019-09-01 06:32:43 +00:00
|
|
|
numpy
|
2019-10-12 10:13:12 +00:00
|
|
|
packaging
|
2020-04-22 08:40:05 +00:00
|
|
|
typing-extensions
|
2017-09-05 09:16:41 +00:00
|
|
|
]
|
2019-12-31 14:50:13 +00:00
|
|
|
++ lib.optionals ( isPy27 ) [
|
|
|
|
futures
|
|
|
|
];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2020-04-22 08:40:05 +00:00
|
|
|
# This test suite is a complete pain. Somehow it can't find its fixtures.
|
|
|
|
doCheck = false;
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Statistical and novel interactive HTML plots for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bokeh/bokeh";
|
2017-09-05 09:16:41 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2017-11-25 22:35:14 +00:00
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
2017-09-23 15:12:44 +00:00
|
|
|
}
|