2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, flask
|
|
|
|
, jinja2
|
|
|
|
, markupsafe
|
|
|
|
, werkzeug
|
|
|
|
, itsdangerous
|
|
|
|
, dateutil
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, pygments
|
|
|
|
, pystache
|
|
|
|
, markdown
|
|
|
|
, pyyaml
|
|
|
|
, pyzmq
|
|
|
|
, tornado
|
|
|
|
, colorama
|
|
|
|
, isPy3k
|
|
|
|
, futures
|
|
|
|
, websocket_client
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, greenlet
|
|
|
|
, python
|
|
|
|
, bkcharts
|
|
|
|
, pillow
|
|
|
|
, selenium
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bokeh";
|
|
|
|
name = "${pname}${version}";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "0.12.10";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "6465fae82e94223f16584645b38d34a73d95712870f29c0244649c2cbf2c8393";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
# Some test that uses tornado fails
|
|
|
|
# doCheck = false;
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest pillow selenium ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
jinja2
|
|
|
|
markupsafe
|
|
|
|
werkzeug
|
|
|
|
itsdangerous
|
|
|
|
dateutil
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
pygments
|
|
|
|
pystache
|
|
|
|
markdown
|
|
|
|
pyyaml
|
|
|
|
pyzmq
|
|
|
|
tornado
|
|
|
|
colorama
|
|
|
|
bkcharts
|
|
|
|
]
|
|
|
|
++ lib.optionals ( !isPy3k ) [ futures ]
|
|
|
|
++ lib.optionals ( !isPy3k && !isPyPy ) [ websocket_client ]
|
|
|
|
++ lib.optionals ( !isPyPy ) [ numpy pandas greenlet ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s bokeh/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Statistical and novel interactive HTML plots for Python";
|
|
|
|
homepage = "http://github.com/bokeh/bokeh";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2017-09-23 16:12:44 +01:00
|
|
|
}
|