Merge pull request #142547 from fabaff/bump-param

python3Packages.param: 1.11.1 -> 1.12.0, python3Packages.intake: 0.6.3 -> 0.6.4
This commit is contained in:
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
, buildPythonPackage
, fetchPypi
, nbsmoke
, param
, pyct
, nbsmoke
, flake8
, pytest
, pytest-mpl
, pytestCheckHook
}:
buildPythonPackage rec {
@ -24,25 +23,29 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
flake8
pytest-mpl
pytestCheckHook
];
checkPhase = ''
preCheck = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
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; {
description = "Collection of perceptually uniform colormaps";
homepage = "https://colorcet.pyviz.org";
license = licenses.cc-by-40;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

View file

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

View file

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

View file

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

View file

@ -3,9 +3,9 @@
, fetchPypi
, isPy27
, param
, pytestCheckHook
, pyyaml
, requests
, pytest
}:
buildPythonPackage rec {
@ -17,22 +17,26 @@ buildPythonPackage rec {
sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7";
};
doCheck = !isPy27;
checkInputs = [ pytest ];
propagatedBuildInputs = [
param
pyyaml
requests
];
checkPhase = ''
pytest
'';
checkInputs = [
pytestCheckHook
];
doCheck = !isPy27;
pythonImportsCheck = [
"pyct"
];
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";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}