2019-09-01 06:32:43 +00:00
|
|
|
{ buildPythonPackage
|
2017-09-05 09:16:41 +00:00
|
|
|
, fetchPypi
|
2019-09-01 06:32:43 +00:00
|
|
|
, futures
|
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
|
2019-09-01 06:32:43 +00:00
|
|
|
, pytest
|
|
|
|
, python
|
|
|
|
, python-dateutil
|
|
|
|
, pyyaml
|
2017-09-05 09:16:41 +00:00
|
|
|
, selenium
|
2019-09-01 06:32:43 +00:00
|
|
|
, six
|
|
|
|
, substituteAll
|
|
|
|
, tornado
|
2017-09-05 09:16:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
2019-12-19 19:31:06 +00:00
|
|
|
version = "1.4.0";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-31 14:50:13 +00:00
|
|
|
sha256 = "1rywd6c6hi0c6yg18j5zxssjd07a5hafcd21xr3q2yvp3aj3h3f6";
|
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
|
|
|
|
2019-09-01 06:32:43 +00:00
|
|
|
disabled = isPyPy;
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2019-12-31 14:50:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
pillow
|
|
|
|
selenium
|
|
|
|
];
|
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
|
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
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s bokeh/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
}
|