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