forked from mirrors/nixpkgs
c6ed6450c9
Bokeh is now used with a supposedly compatible version of panel.
This reverts commit 3660d282ac
.
102 lines
1.6 KiB
Nix
102 lines
1.6 KiB
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, futures
|
|
, isPy27
|
|
, isPyPy
|
|
, jinja2
|
|
, lib
|
|
, mock
|
|
, numpy
|
|
, nodejs
|
|
, packaging
|
|
, pillow
|
|
#, pytestCheckHook#
|
|
, pytest
|
|
, python
|
|
, python-dateutil
|
|
, pyyaml
|
|
, selenium
|
|
, six
|
|
, substituteAll
|
|
, tornado
|
|
, typing-extensions
|
|
, pytz
|
|
, flaky
|
|
, networkx
|
|
, beautifulsoup4
|
|
, requests
|
|
, nbconvert
|
|
, icalendar
|
|
, pandas
|
|
, pythonImportsCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bokeh";
|
|
# update together with panel which is not straightforward
|
|
version = "2.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "dd417708f90702190222b1068a645acae99e66d4b58d7a336d545aeaa04e9b40";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./hardcode-nodejs-npmjs-paths.patch;
|
|
node_bin = "${nodejs}/bin/node";
|
|
npm_bin = "${nodejs}/bin/npm";
|
|
})
|
|
];
|
|
|
|
disabled = isPyPy || isPy27;
|
|
|
|
nativeBuildInputs = [
|
|
pythonImportsCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bokeh"
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytest
|
|
pillow
|
|
selenium
|
|
pytz
|
|
flaky
|
|
networkx
|
|
beautifulsoup4
|
|
requests
|
|
nbconvert
|
|
icalendar
|
|
pandas
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pillow
|
|
jinja2
|
|
python-dateutil
|
|
six
|
|
pyyaml
|
|
tornado
|
|
numpy
|
|
packaging
|
|
typing-extensions
|
|
]
|
|
++ lib.optionals ( isPy27 ) [
|
|
futures
|
|
];
|
|
|
|
# This test suite is a complete pain. Somehow it can't find its fixtures.
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|