nixpkgs/pkgs/development/python-modules/bokeh/default.nix
Frederik Rietdijk 491b4dafe6 python3Packages.bokeh: 1.4.0 -> 2.0.1
Tests still don't function. Somehow fixtures cannot be found causing massive failures...
2020-06-02 15:05:54 +02:00

101 lines
1.5 KiB
Nix

{ buildPythonPackage
, fetchPypi
, futures
, isPy27
, isPyPy
, jinja2
, lib
, mock
, numpy
, nodejs
, packaging
, pillow
#, pytestCheckHook#
, pytest
, python
, python-dateutil
, pyyaml
, selenium
, six
, substituteAll
, tornado
, typing-extensions
, pytz
, flaky
, networkx
, beautifulsoup4
, requests
, nbconvert
, icalendar
, pandas
, pythonImportsCheckHook
}:
buildPythonPackage rec {
pname = "bokeh";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "d9248bdb0156797abf6d04b5eac581dcb121f5d1db7acbc13282b0609314893a";
};
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"
];
checkInputs = [
mock
pytest
pillow
selenium
pytz
flaky
networkx
beautifulsoup4
requests
nbconvert
icalendar
pandas
];
propagatedBuildInputs = [
pillow
jinja2
python-dateutil
six
pyyaml
tornado
numpy
packaging
typing-extensions
]
++ 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 ];
};
}