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

101 lines
1.5 KiB
Nix
Raw Normal View History

2019-09-01 07:32:43 +01:00
{ buildPythonPackage
, fetchPypi
2019-09-01 07:32:43 +01:00
, futures
2019-12-31 14:50:13 +00:00
, isPy27
, isPyPy
, jinja2
2019-09-01 07:32:43 +01:00
, lib
, mock
, numpy
2019-09-01 07:32:43 +01:00
, nodejs
, packaging
, pillow
#, pytestCheckHook#
2019-09-01 07:32:43 +01:00
, pytest
, python
, python-dateutil
, pyyaml
, selenium
2019-09-01 07:32:43 +01:00
, six
, substituteAll
, tornado
, typing-extensions
, pytz
, flaky
, networkx
, beautifulsoup4
, requests
, nbconvert
, icalendar
, pandas
, pythonImportsCheckHook
}:
buildPythonPackage rec {
pname = "bokeh";
2021-03-06 15:58:41 +00:00
version = "2.3.0";
src = fetchPypi {
inherit pname version;
2021-03-06 15:58:41 +00:00
sha256 = "dd417708f90702190222b1068a645acae99e66d4b58d7a336d545aeaa04e9b40";
};
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";
})
];
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 07:32:43 +01:00
python-dateutil
six
pyyaml
tornado
2019-09-01 07:32:43 +01: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 16:12:44 +01:00
}