nixpkgs/pkgs/development/python-modules/bokeh/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

2019-09-01 06:32:43 +00:00
{ buildPythonPackage
, fetchPypi
2019-09-01 06:32:43 +00:00
, futures
, isPy3k
, isPyPy
, jinja2
2019-09-01 06:32:43 +00:00
, lib
, mock
, numpy
2019-09-01 06:32:43 +00:00
, nodejs
, pillow
2019-09-01 06:32:43 +00:00
, pytest
, python
, python-dateutil
, pyyaml
, selenium
2019-09-01 06:32:43 +00:00
, six
, substituteAll
, tornado
}:
buildPythonPackage rec {
pname = "bokeh";
2019-09-01 06:32:43 +00:00
version = "1.3.4";
src = fetchPypi {
inherit pname version;
2019-09-01 06:32:43 +00:00
sha256 = "0m27j29jpi977y95k272xc24qkl5bkniy046cil116hrbgnppng2";
};
2019-09-01 06:32:43 +00:00
patches = [
(substituteAll {
src = ./hardcode-nodejs-npmjs-paths.patch;
node_bin = "${nodejs}/bin/node";
npm_bin = "${nodejs}/bin/npm";
})
];
2019-09-01 06:32:43 +00:00
disabled = isPyPy;
checkInputs = [ mock pytest pillow selenium ];
propagatedBuildInputs = [
pillow
jinja2
2019-09-01 06:32:43 +00:00
python-dateutil
six
pyyaml
tornado
2019-09-01 06:32:43 +00:00
numpy
]
2019-09-01 06:32:43 +00:00
++ lib.optionals ( !isPy3k ) [ futures ];
checkPhase = ''
${python.interpreter} -m unittest discover -s bokeh/tests
'';
meta = {
description = "Statistical and novel interactive HTML plots for Python";
2018-06-27 20:12:57 +00:00
homepage = https://github.com/bokeh/bokeh;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ orivej ];
};
2017-09-23 15:12:44 +00:00
}