3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/bokeh/default.nix

74 lines
1.1 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
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
}:
buildPythonPackage rec {
pname = "bokeh";
2019-12-19 19:31:06 +00:00
version = "1.4.0";
src = fetchPypi {
inherit pname version;
2019-12-31 14:50:13 +00:00
sha256 = "1rywd6c6hi0c6yg18j5zxssjd07a5hafcd21xr3q2yvp3aj3h3f6";
};
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";
})
];
2019-09-01 07:32:43 +01:00
disabled = isPyPy;
2019-12-31 14:50:13 +00:00
checkInputs = [
mock
pytest
pillow
selenium
];
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
]
2019-12-31 14:50:13 +00:00
++ lib.optionals ( isPy27 ) [
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 ];
};
2017-09-23 16:12:44 +01:00
}