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-06-30 08:37:04 +01:00
version = "2.1.1";
src = fetchPypi {
inherit pname version;
2020-06-30 08:37:04 +01:00
sha256 = "2dfabf228f55676b88acc464f416e2b13ee06470a8ad1dd3e609bb789425fbad";
};
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
}