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";
2020-10-25 09:06:50 +00:00
version = "2.2.3";
src = fetchPypi {
inherit pname version;
2020-10-25 09:06:50 +00:00
sha256 = "c4a3f97afe5f525019dd58ee8c4e3d43f53fe1b1ac264ccaae9b02c07b2abc17";
};
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
}