mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
84 lines
1.4 KiB
Nix
84 lines
1.4 KiB
Nix
{ 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}";
|
|
version = "0.12.13";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6e28cbfd88de0c459435278b75f9982591ec0aaa3d37a195052645e1c62e89e3";
|
|
};
|
|
|
|
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;
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
};
|
|
}
|