Merge pull request #291877 from fabaff/fastparquet-bump

python311Packages.fastparquet: 2023.7.0 -> 2024.2.0, python311Packages.intake: 0.7.0 -> 2.0.3
This commit is contained in:
Fabian Affolter 2024-02-27 20:26:46 +01:00 committed by GitHub
commit f7d1dd65bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 60 additions and 49 deletions

View file

@ -20,18 +20,27 @@
buildPythonPackage rec {
pname = "fastparquet";
version = "2023.7.0";
format = "pyproject";
version = "2024.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
hash = "sha256-pJ0zK0upEV7TyuNMIcozugkwBlYpK/Dg6BdB0kBpn9k=";
repo = "fastparquet";
rev = "refs/tags/${version}";
hash = "sha256-e0gnC/HMYdrYdEwy6qNOD1J52xgN2x81oCG03YNsYjg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"pytest-runner"' ""
sed -i \
-e "/pytest-runner/d" \
-e '/"git", "status"/d' setup.py
'';
nativeBuildInputs = [
cython
oldest-supported-numpy
@ -40,15 +49,6 @@ buildPythonPackage rec {
wheel
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"pytest-runner"' ""
sed -i \
-e "/pytest-runner/d" \
-e '/"git", "status"/d' setup.py
'';
propagatedBuildInputs = [
cramjam
fsspec
@ -85,7 +85,7 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "A python implementation of the parquet format";
description = "Implementation of the parquet format";
homepage = "https://github.com/dask/fastparquet";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];

View file

@ -5,20 +5,34 @@
, dask
, fastparquet
, pyarrow
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "intake-parquet";
version = "0.3.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "intake";
repo = pname;
rev = version;
sha256 = "sha256-zSwylXBKOM/tG5mwYtc0FmxwcKJ6j+lw1bxJqf57NY8=";
repo = "intake-parquet";
rev = "refs/tags/${version}";
hash = "sha256-zSwylXBKOM/tG5mwYtc0FmxwcKJ6j+lw1bxJqf57NY8=";
};
postPatch = ''
# Break circular dependency
substituteInPlace requirements.txt \
--replace-fail "intake" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pandas
dask
@ -26,12 +40,6 @@ buildPythonPackage rec {
pyarrow
];
postPatch = ''
# Break circular dependency
substituteInPlace requirements.txt \
--replace "intake" ""
'';
doCheck = false;
#pythonImportsCheck = [ "intake_parquet" ];

View file

@ -1,4 +1,5 @@
{ lib
, stdenv
, appdirs
, bokeh
, buildPythonPackage
@ -19,14 +20,15 @@
, pythonOlder
, pyyaml
, requests
, stdenv
, setuptools
, setuptools-scm
, tornado
}:
buildPythonPackage rec {
pname = "intake";
version = "0.7.0";
format = "setuptools";
version = "2.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
@ -34,9 +36,14 @@ buildPythonPackage rec {
owner = "intake";
repo = "intake";
rev = "refs/tags/${version}";
hash = "sha256-LK4abwPViEFJZ10bbRofF2aw2Mj0dliKwX6dFy93RVQ=";
hash = "sha256-Fyv85HkoE9OPOoSHR1sgCG0iAFuSiQMT7cyZcQyLvv0=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
appdirs
dask
@ -73,11 +80,6 @@ buildPythonPackage rec {
];
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
__darwinAllowLocalNetworking = true;
preCheck = ''
@ -85,6 +87,20 @@ buildPythonPackage rec {
export PATH="$PATH:$out/bin";
'';
disabledTestPaths = [
# Missing plusins
"intake/catalog/tests/test_alias.py"
"intake/catalog/tests/test_gui.py"
"intake/catalog/tests/test_local.py"
"intake/catalog/tests/test_reload_integration.py"
"intake/source/tests/test_csv.py"
"intake/source/tests/test_derived.py"
"intake/source/tests/test_npy.py"
"intake/source/tests/test_text.py"
"intake/tests/test_config.py"
"intake/tests/test_top_level.py"
];
disabledTests = [
# Disable tests which touch network
"http"
@ -103,23 +119,10 @@ buildPythonPackage rec {
"test_remote_cat"
"test_remote_env"
# ValueError
"test_mlist_parameter"
# ImportError
"test_dataframe"
"test_ndarray"
"test_python"
"test_datasource_python_to_dask"
"test_catalog_passthrough"
# Timing-based, flaky on darwin and possibly others
"test_idle_timer"
# arrow-cpp-13 related
"test_read"
"test_pickle"
"test_read_dask"
"test_read_list"
"test_read_list_with_glob"
"test_to_dask"
"test_columns"
"test_df_transform"
"test_pipeline_apply"
] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [
# Flaky with older low-res mtime on darwin < 10.13 (#143987)
"test_second_load_timestamp"