nixpkgs/pkgs/development/python-modules/bokeh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

101 lines
1.6 KiB
Nix
Raw Normal View History

2019-09-01 06:32:43 +00:00
{ buildPythonPackage
, fetchPypi
, futures ? null
2019-12-31 14:50:13 +00:00
, isPy27
, isPyPy
, jinja2
2019-09-01 06:32:43 +00:00
, lib
, mock
, numpy
2019-09-01 06:32:43 +00:00
, nodejs
, packaging
, pillow
#, pytestCheckHook#
2019-09-01 06:32:43 +00:00
, pytest
, python-dateutil
, pyyaml
, selenium
2019-09-01 06:32:43 +00:00
, 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
2021-11-25 22:46:39 +00:00
version = "2.4.2";
src = fetchPypi {
inherit pname version;
2021-11-25 22:46:39 +00:00
sha256 = "f0a4b53364ed3b7eb936c5cb1a4f4132369e394c7ae0a8ef420459410958033d";
};
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";
})
];
disabled = isPyPy || isPy27;
nativeBuildInputs = [
pythonImportsCheckHook
];
pythonImportsCheck = [
"bokeh"
];
2019-12-31 14:50:13 +00:00
checkInputs = [
mock
pytest
pillow
selenium
pytz
flaky
networkx
beautifulsoup4
requests
nbconvert
icalendar
pandas
2019-12-31 14:50:13 +00:00
];
propagatedBuildInputs = [
pillow
jinja2
2019-09-01 06:32:43 +00:00
python-dateutil
six
pyyaml
tornado
2019-09-01 06:32:43 +00:00
numpy
packaging
typing-extensions
]
2019-12-31 14:50:13 +00:00
++ 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 ];
};
2017-09-23 15:12:44 +00:00
}