intake: 0.4.4 -> 0.5.3 (#66412)

This commit is contained in:
Wael Nasreddine 2019-09-01 00:32:43 -06:00 committed by GitHub
parent 22a9e79ad3
commit 4b51602816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 63 additions and 62 deletions

View File

@ -1,74 +1,55 @@
{ lib { buildPythonPackage
, buildPythonPackage
, fetchPypi , fetchPypi
, isPyPy
, mock
, pytest
, flask
, jinja2
, markupsafe
, werkzeug
, itsdangerous
, dateutil
, requests
, six
, pygments
, pystache
, markdown
, pyyaml
, pyzmq
, tornado
, colorama
, isPy3k
, futures , futures
, websocket_client , isPy3k
, isPyPy
, jinja2
, lib
, mock
, numpy , numpy
, pandas , nodejs
, greenlet
, python
, bkcharts
, pillow , pillow
, pytest
, python
, python-dateutil
, pyyaml
, selenium , selenium
, six
, substituteAll
, tornado
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "bokeh"; pname = "bokeh";
version = "1.0.4"; version = "1.3.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ceeb6a75afc1b2de00c2b8b6da121dec3fb77031326897b80d4375a70e96aebf"; sha256 = "0m27j29jpi977y95k272xc24qkl5bkniy046cil116hrbgnppng2";
}; };
disabled = isPyPy; patches = [
(substituteAll {
src = ./hardcode-nodejs-npmjs-paths.patch;
node_bin = "${nodejs}/bin/node";
npm_bin = "${nodejs}/bin/npm";
})
];
# Some test that uses tornado fails disabled = isPyPy;
# doCheck = false;
checkInputs = [ mock pytest pillow selenium ]; checkInputs = [ mock pytest pillow selenium ];
propagatedBuildInputs = [ propagatedBuildInputs = [
pillow pillow
flask
jinja2 jinja2
markupsafe python-dateutil
werkzeug
itsdangerous
dateutil
requests
six six
pygments
pystache
markdown
pyyaml pyyaml
pyzmq
tornado tornado
colorama numpy
bkcharts
] ]
++ lib.optionals ( !isPy3k ) [ futures ] ++ lib.optionals ( !isPy3k ) [ futures ];
++ lib.optionals ( !isPy3k && !isPyPy ) [ websocket_client ]
++ lib.optionals ( !isPyPy ) [ numpy pandas greenlet ];
checkPhase = '' checkPhase = ''
${python.interpreter} -m unittest discover -s bokeh/tests ${python.interpreter} -m unittest discover -s bokeh/tests

View File

@ -0,0 +1,15 @@
diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py
index a752aad7d..8af05ff63 100644
--- a/bokeh/util/compiler.py
+++ b/bokeh/util/compiler.py
@@ -442,8 +442,8 @@ def _detect_nodejs():
raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version +
'("conda install nodejs" or follow https://nodejs.org/en/download/)')
-_nodejs = None
-_npmjs = None
+_nodejs = "@node_bin@"
+_npmjs = "@npm_bin@"
def _nodejs_path():
global _nodejs

View File

@ -4,28 +4,31 @@
, appdirs , appdirs
, dask , dask
, holoviews , holoviews
, hvplot
, jinja2 , jinja2
, msgpack-numpy , msgpack-numpy
, msgpack-python , msgpack-python
, numpy , numpy
, pandas , pandas
, panel
, python-snappy , python-snappy
, requests , requests
, ruamel_yaml , ruamel_yaml
, six , six
, tornado , tornado
, pytest , pytest
, isPy27 , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "intake"; pname = "intake";
version = "0.4.4"; version = "0.5.3";
disabled = isPy27;
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3fc1b7c2949c9b4200ecbbfdff17da126981a1d8d95ccb7b7bcca3e3dd849d5e"; sha256 = "1mbjr4xl4i523bg8k08s5986v2289fznd8cr3j3czn5adi8519j7";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];
@ -33,11 +36,13 @@ buildPythonPackage rec {
appdirs appdirs
dask dask
holoviews holoviews
hvplot
jinja2 jinja2
msgpack-numpy msgpack-numpy
msgpack-python msgpack-python
numpy numpy
pandas pandas
panel
python-snappy python-snappy
requests requests
ruamel_yaml ruamel_yaml
@ -45,10 +50,15 @@ buildPythonPackage rec {
tornado tornado
]; ];
postPatch = ''
# Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
checkPhase = '' checkPhase = ''
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache"
# test_which assumes python for executable name
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_filtered_compressed_cache and not test_which"
''; '';
meta = with lib; { meta = with lib; {

View File

@ -11,18 +11,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "panel"; pname = "panel";
version = "0.4.0"; version = "0.6.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "21fc6729909dba4ba8c9a84b7fadd293322cc2594d15ac73b0f66a5ceffd1f98"; sha256 = "04w8jjlf7yz3k84xnacahczc9mmddqyp756rj3n8hclks9c1ww40";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "testpath<0.4" "testpath"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
bokeh bokeh
param param

View File

@ -7,11 +7,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "param"; pname = "param";
version = "1.8.2"; version = "1.9.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "49927979d4f6c994bcd8f6f7f2b34e3a0a7f0d62404dca6bcae5acde0192bb01"; sha256 = "1dbnviszdq3d2k3dfwpimb0adf27yzwm4iyv42rk8xvd8c6p9gdi";
}; };
checkInputs = [ flake8 nose ]; checkInputs = [ flake8 nose ];