nixpkgs/pkgs/development/python-modules/bokeh/default.nix
2019-12-30 16:46:40 +01:00

67 lines
1.1 KiB
Nix

{ buildPythonPackage
, fetchPypi
, futures
, isPy3k
, isPyPy
, jinja2
, lib
, mock
, numpy
, nodejs
, packaging
, pillow
, pytest
, python
, python-dateutil
, pyyaml
, selenium
, six
, substituteAll
, tornado
}:
buildPythonPackage rec {
pname = "bokeh";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "c60d38a41a777b8147ee4134e6142cea8026b5eebf48149e370c44689869dce7";
};
patches = [
(substituteAll {
src = ./hardcode-nodejs-npmjs-paths.patch;
node_bin = "${nodejs}/bin/node";
npm_bin = "${nodejs}/bin/npm";
})
];
disabled = isPyPy;
checkInputs = [ mock pytest pillow selenium ];
propagatedBuildInputs = [
pillow
jinja2
python-dateutil
six
pyyaml
tornado
numpy
packaging
]
++ lib.optionals ( !isPy3k ) [ futures ];
checkPhase = ''
${python.interpreter} -m unittest discover -s bokeh/tests
'';
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 ];
};
}