nixpkgs-suyu/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 08:32:43 +02:00
{ buildPythonPackage
, fetchPypi
, futures ? null
2019-12-31 15:50:13 +01:00
, isPy27
, isPyPy
, jinja2
2019-09-01 08:32:43 +02:00
, lib
, mock
, numpy
2019-09-01 08:32:43 +02:00
, nodejs
, packaging
, pillow
#, pytestCheckHook#
2019-09-01 08:32:43 +02:00
, pytest
, python-dateutil
, pyyaml
, selenium
2019-09-01 08:32:43 +02: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
version = "2.4.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM=";
};
2019-09-01 08:32:43 +02: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"
];
nativeCheckInputs = [
2019-12-31 15:50:13 +01:00
mock
pytest
pillow
selenium
pytz
flaky
networkx
beautifulsoup4
requests
nbconvert
icalendar
pandas
2019-12-31 15:50:13 +01:00
];
propagatedBuildInputs = [
pillow
jinja2
2019-09-01 08:32:43 +02:00
python-dateutil
six
pyyaml
tornado
2019-09-01 08:32:43 +02:00
numpy
packaging
typing-extensions
]
2019-12-31 15:50:13 +01: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 17:12:44 +02:00
}