diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2017-09-05 11:16:41 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-09-06 13:54:10 +0200 |
commit | 67651d80bc8baaf09ab91fec8ea423e09107ed8f (patch) | |
tree | 216a82ca309b80298039c2038160a22e94a1de6f /pkgs/development/python-modules/bokeh | |
parent | 036bafe0b94fb99ee9d1eb3d2fb902293a9f39a6 (diff) | |
download | nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.gz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.bz2 nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.lz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.xz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.zst nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.zip |
Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
Diffstat (limited to 'pkgs/development/python-modules/bokeh')
-rw-r--r-- | pkgs/development/python-modules/bokeh/default.nix | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bokeh/default.nix b/pkgs/development/python-modules/bokeh/default.nix new file mode 100644 index 000000000000..43c176a09ec6 --- /dev/null +++ b/pkgs/development/python-modules/bokeh/default.nix @@ -0,0 +1,82 @@ +{ 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.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "2c42c95bf1a418c758dbff8446b4f5e5fc72ac10ea5da4e6b5010067396d0880"; + }; + + 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; + }; +} \ No newline at end of file |