Merge pull request #142547 from fabaff/bump-param

python3Packages.param: 1.11.1 -> 1.12.0, python3Packages.intake: 0.6.3 -> 0.6.4
conduit-nginx
Fabian Affolter 2021-10-22 19:43:05 +02:00 committed by GitHub
commit 62e943b78b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 79 additions and 67 deletions

View File

@ -1,12 +1,11 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, nbsmoke
, param , param
, pyct , pyct
, nbsmoke
, flake8
, pytest
, pytest-mpl , pytest-mpl
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -24,25 +23,29 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest
flake8
pytest-mpl pytest-mpl
pytestCheckHook
]; ];
checkPhase = '' preCheck = ''
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib ln -s $HOME/.config/matplotlib $HOME/.matplotlib
# requires other backends to be available
pytest colorcet -k 'not matplotlib_default_colormap_plot'
''; '';
disabledTests = [
"matplotlib_default_colormap_plot"
];
pythonImportsCheck = [
"colorcet"
];
meta = with lib; { meta = with lib; {
description = "Collection of perceptually uniform colormaps"; description = "Collection of perceptually uniform colormaps";
homepage = "https://colorcet.pyviz.org"; homepage = "https://colorcet.pyviz.org";
license = licenses.cc-by-40; license = licenses.cc-by-40;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }

View File

@ -1,18 +1,10 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, bokeh , bokeh
, buildPythonPackage
, colorcet
, fetchPypi
, holoviews , holoviews
, pandas , pandas
, pytest
, parameterized
, nbsmoke
, flake8
, coveralls
, xarray
, networkx
, streamz
, colorcet
, pythonImportsCheckHook , pythonImportsCheckHook
}: }:
@ -29,7 +21,6 @@ buildPythonPackage rec {
pythonImportsCheckHook pythonImportsCheckHook
]; ];
checkInputs = [ pytest parameterized nbsmoke flake8 coveralls xarray networkx streamz ];
propagatedBuildInputs = [ propagatedBuildInputs = [
bokeh bokeh
colorcet colorcet
@ -37,11 +28,7 @@ buildPythonPackage rec {
pandas pandas
]; ];
preCheck = '' # Many tests require a network connection
export HOME=$(mktemp -d)
'';
# many tests require a network connection
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
@ -52,6 +39,6 @@ buildPythonPackage rec {
description = "A high-level plotting API for the PyData ecosystem built on HoloViews"; description = "A high-level plotting API for the PyData ecosystem built on HoloViews";
homepage = "https://hvplot.pyviz.org"; homepage = "https://hvplot.pyviz.org";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }

View File

@ -1,67 +1,71 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, appdirs , appdirs
, bokeh
, buildPythonPackage
, dask , dask
, entrypoints
, fetchFromGitHub
, fsspec
, holoviews , holoviews
, hvplot , hvplot
, fsspec , intake-parquet
, jinja2 , jinja2
, msgpack , msgpack
, msgpack-numpy , msgpack-numpy
, numpy , numpy
, pandas , pandas
, panel , panel
, intake-parquet
, pyarrow , pyarrow
, pytestCheckHook , pytestCheckHook
, pythonOlder
, python-snappy , python-snappy
, pythonOlder
, pyyaml
, requests , requests
, ruamel_yaml
, six
, tornado , tornado
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "intake"; pname = "intake";
version = "0.6.3"; version = "0.6.4";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = pname;
sha256 = "f64543353f30d9440b953984f78b7a0954e5756d70c64243609d307ba488014f"; repo = pname;
rev = version;
sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
appdirs appdirs
bokeh
dask dask
entrypoints
fsspec
holoviews holoviews
hvplot hvplot
jinja2 jinja2
msgpack-numpy
msgpack msgpack
msgpack-numpy
numpy numpy
pandas pandas
panel panel
pyarrow
python-snappy python-snappy
pyyaml
requests requests
ruamel_yaml
six
tornado tornado
]; ];
checkInputs = [ checkInputs = [
fsspec
intake-parquet intake-parquet
pyarrow
pytestCheckHook pytestCheckHook
]; ];
postPatch = '' postPatch = ''
# Is in setup_requires but not used in setup.py... substituteInPlace setup.py \
substituteInPlace setup.py --replace "'pytest-runner'" "" --replace "'pytest-runner'" ""
''; '';
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
@ -72,7 +76,7 @@ buildPythonPackage rec {
''; '';
disabledTests = [ disabledTests = [
# disable tests which touch network and are broken # Disable tests which touch network and are broken
"test_discover" "test_discover"
"test_filtered_compressed_cache" "test_filtered_compressed_cache"
"test_get_dir" "test_get_dir"
@ -82,6 +86,10 @@ buildPythonPackage rec {
"test_remote_arr" "test_remote_arr"
]; ];
pythonImportsCheck = [
"intake"
];
meta = with lib; { meta = with lib; {
description = "Data load and catalog system"; description = "Data load and catalog system";
homepage = "https://github.com/ContinuumIO/intake"; homepage = "https://github.com/ContinuumIO/intake";

View File

@ -1,28 +1,38 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, flake8 , pytestCheckHook
, nose
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "param"; pname = "param";
version = "1.11.1"; version = "1.12.0";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "holoviz";
sha256 = "b9857df01495bd55ddafb214fd1ed017d20699ce42ec2a0fd190d99caa03099f"; repo = pname;
rev = "v${version}";
sha256 = "02zmd4bwyn8b4q1l9jgddc70ii1i7bmynacanl1cvbr6la4v9b2c";
}; };
checkInputs = [ flake8 nose ]; checkInputs = [
pytestCheckHook
];
# tests not included with pypi release postPatch = ''
doCheck = false; # Version is not set properly
substituteInPlace setup.py \
--replace 'version=get_setup_version("param"),' 'version="${version}",'
'';
pythonImportsCheck = [
"param"
];
meta = with lib; { meta = with lib; {
description = "Declarative Python programming using Parameters"; description = "Declarative Python programming using Parameters";
homepage = "https://github.com/pyviz/param"; homepage = "https://github.com/pyviz/param";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }

View File

@ -3,9 +3,9 @@
, fetchPypi , fetchPypi
, isPy27 , isPy27
, param , param
, pytestCheckHook
, pyyaml , pyyaml
, requests , requests
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -17,22 +17,26 @@ buildPythonPackage rec {
sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7"; sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7";
}; };
doCheck = !isPy27;
checkInputs = [ pytest ];
propagatedBuildInputs = [ propagatedBuildInputs = [
param param
pyyaml pyyaml
requests requests
]; ];
checkPhase = '' checkInputs = [
pytest pytestCheckHook
''; ];
doCheck = !isPy27;
pythonImportsCheck = [
"pyct"
];
meta = with lib; { meta = with lib; {
description = "Cli for python common tasks for users"; description = "ClI for Python common tasks for users";
homepage = "https://github.com/pyviz/pyct"; homepage = "https://github.com/pyviz/pyct";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }