1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, mock
6, pytest
7, flask
8, jinja2
9, markupsafe
10, werkzeug
11, itsdangerous
12, dateutil
13, requests
14, six
15, pygments
16, pystache
17, markdown
18, pyyaml
19, pyzmq
20, tornado
21, colorama
22, isPy3k
23, futures
24, websocket_client
25, numpy
26, pandas
27, greenlet
28, python
29, bkcharts
30, pillow
31, selenium
32}:
33
34buildPythonPackage rec {
35 pname = "bokeh";
36 version = "0.13.0";
37
38 src = fetchPypi {
39 inherit pname version;
40 sha256 = "d0cf59774d7c74b7173b82ce36bde35b8fe9da0f960364ba3c4df0d1fbd874d6";
41 };
42
43 disabled = isPyPy;
44
45 # Some test that uses tornado fails
46# doCheck = false;
47
48 checkInputs = [ mock pytest pillow selenium ];
49
50 propagatedBuildInputs = [
51 flask
52 jinja2
53 markupsafe
54 werkzeug
55 itsdangerous
56 dateutil
57 requests
58 six
59 pygments
60 pystache
61 markdown
62 pyyaml
63 pyzmq
64 tornado
65 colorama
66 bkcharts
67 ]
68 ++ lib.optionals ( !isPy3k ) [ futures ]
69 ++ lib.optionals ( !isPy3k && !isPyPy ) [ websocket_client ]
70 ++ lib.optionals ( !isPyPy ) [ numpy pandas greenlet ];
71
72 checkPhase = ''
73 ${python.interpreter} -m unittest discover -s bokeh/tests
74 '';
75
76 meta = {
77 description = "Statistical and novel interactive HTML plots for Python";
78 homepage = https://github.com/bokeh/bokeh;
79 license = lib.licenses.bsd3;
80 maintainers = with lib.maintainers; [ orivej ];
81 };
82}