2019-09-01 07:32:43 +01:00
|
|
|
{ buildPythonPackage
|
2017-09-05 10:16:41 +01:00
|
|
|
, fetchPypi
|
2019-09-01 07:32:43 +01:00
|
|
|
, futures
|
|
|
|
, isPy3k
|
2017-09-05 10:16:41 +01:00
|
|
|
, isPyPy
|
|
|
|
, jinja2
|
2019-09-01 07:32:43 +01:00
|
|
|
, lib
|
|
|
|
, mock
|
2017-09-05 10:16:41 +01:00
|
|
|
, numpy
|
2019-09-01 07:32:43 +01:00
|
|
|
, nodejs
|
2017-09-05 10:16:41 +01:00
|
|
|
, pillow
|
2019-09-01 07:32:43 +01:00
|
|
|
, pytest
|
|
|
|
, python
|
|
|
|
, python-dateutil
|
|
|
|
, pyyaml
|
2017-09-05 10:16:41 +01:00
|
|
|
, selenium
|
2019-09-01 07:32:43 +01:00
|
|
|
, six
|
|
|
|
, substituteAll
|
|
|
|
, tornado
|
2017-09-05 10:16:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
2019-09-01 07:32:43 +01:00
|
|
|
version = "1.3.4";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-01 07:32:43 +01:00
|
|
|
sha256 = "0m27j29jpi977y95k272xc24qkl5bkniy046cil116hrbgnppng2";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-09-01 07:32:43 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-nodejs-npmjs-paths.patch;
|
|
|
|
node_bin = "${nodejs}/bin/node";
|
|
|
|
npm_bin = "${nodejs}/bin/npm";
|
|
|
|
})
|
|
|
|
];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2019-09-01 07:32:43 +01:00
|
|
|
disabled = isPyPy;
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
checkInputs = [ mock pytest pillow selenium ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-10-26 20:43:23 +01:00
|
|
|
pillow
|
2017-09-05 10:16:41 +01:00
|
|
|
jinja2
|
2019-09-01 07:32:43 +01:00
|
|
|
python-dateutil
|
2017-09-05 10:16:41 +01:00
|
|
|
six
|
|
|
|
pyyaml
|
|
|
|
tornado
|
2019-09-01 07:32:43 +01:00
|
|
|
numpy
|
2017-09-05 10:16:41 +01:00
|
|
|
]
|
2019-09-01 07:32:43 +01:00
|
|
|
++ lib.optionals ( !isPy3k ) [ futures ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s bokeh/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Statistical and novel interactive HTML plots for Python";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://github.com/bokeh/bokeh;
|
2017-09-05 10:16:41 +01:00
|
|
|
license = lib.licenses.bsd3;
|
2017-11-25 22:35:14 +00:00
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
2017-09-23 16:12:44 +01:00
|
|
|
}
|