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 name = "${pname}${version}";
37 version = "0.12.14";
38
39 src = fetchPypi {
40 inherit pname version;
41 sha256 = "42abada2e484d2d5b290d14a943e1c3cd7adabd39933b5f074f57b6cf7920a87";
42 };
43
44 disabled = isPyPy;
45
46 # Some test that uses tornado fails
47# doCheck = false;
48
49 checkInputs = [ mock pytest pillow selenium ];
50
51 propagatedBuildInputs = [
52 flask
53 jinja2
54 markupsafe
55 werkzeug
56 itsdangerous
57 dateutil
58 requests
59 six
60 pygments
61 pystache
62 markdown
63 pyyaml
64 pyzmq
65 tornado
66 colorama
67 bkcharts
68 ]
69 ++ lib.optionals ( !isPy3k ) [ futures ]
70 ++ lib.optionals ( !isPy3k && !isPyPy ) [ websocket_client ]
71 ++ lib.optionals ( !isPyPy ) [ numpy pandas greenlet ];
72
73 checkPhase = ''
74 ${python.interpreter} -m unittest discover -s bokeh/tests
75 '';
76
77 meta = {
78 description = "Statistical and novel interactive HTML plots for Python";
79 homepage = "http://github.com/bokeh/bokeh";
80 license = lib.licenses.bsd3;
81 maintainers = with lib.maintainers; [ orivej ];
82 };
83}