python3Packages.apache-beam: 2.66.0 -> 2.67.0

Diff: https://github.com/apache/beam/compare/v2.66.0...v2.67.0

Changelog: https://github.com/apache/beam/blob/release-v2.67.0/CHANGES.md
This commit is contained in:
Gaetan Lepage
2025-08-28 12:37:27 +02:00
parent 3a3e84195d
commit 628c4052db
@@ -31,6 +31,7 @@
protobuf,
pyarrow,
pydot,
pymilvus,
pymongo,
python-dateutil,
pytz,
@@ -62,16 +63,27 @@
buildPythonPackage rec {
pname = "apache-beam";
version = "2.66.0";
version = "2.67.0";
pyproject = true;
src = fetchFromGitHub {
owner = "apache";
repo = "beam";
tag = "v${version}";
hash = "sha256-nRofy9pvhO5SUvkIk73ViFm1gPWxEhj1rAUeCVYIpYs=";
hash = "sha256-gHlbmPNtSKjYO4YPPtWnjul977APsHwe/2cq2UG4wuk=";
};
sourceRoot = "${src.name}/sdks/python";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "==" ">=" \
--replace-fail ",<2.3.0" ""
substituteInPlace setup.py \
--replace-fail " copy_tests_from_docs()" ""
'';
pythonRelaxDeps = [
"grpcio"
"jsonpickle"
@@ -95,8 +107,6 @@ buildPythonPackage rec {
"redis"
];
sourceRoot = "${src.name}/sdks/python";
build-system = [
cython
distlib
@@ -125,6 +135,7 @@ buildPythonPackage rec {
protobuf
pyarrow
pydot
pymilvus
pymongo
python-dateutil
pytz
@@ -136,18 +147,6 @@ buildPythonPackage rec {
enableParallelBuilding = true;
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "distlib==0.3.7" "distlib" \
--replace-fail "yapf==0.29.0" "yapf" \
--replace-fail "grpcio-tools==1.62.1" "grpcio-tools" \
--replace-fail "mypy-protobuf==3.5.0" "mypy-protobuf" \
--replace-fail "numpy>=1.14.3,<2.3.0" "numpy"
substituteInPlace setup.py \
--replace-fail " copy_tests_from_docs()" ""
'';
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "apache_beam" ];
@@ -178,6 +177,14 @@ buildPythonPackage rec {
'';
disabledTestPaths = [
# FileNotFoundError: [Errno 2] No such file or directory:
# '/nix/store/...-python3.13-apache-beam-2.67.0/lib/python3.13/site-packages/apache_beam/yaml/docs/yaml.md'
"apache_beam/yaml/examples/testing/examples_test.py"
# from google.cloud.sql.connector import Connector
# E ModuleNotFoundError: No module named 'google.cloud'
"apache_beam/ml/rag/ingestion/cloudsql_it_test.py"
# Fails with
# _______ ERROR collecting apache_beam/io/external/xlang_jdbcio_it_test.py _______
# apache_beam/io/external/xlang_jdbcio_it_test.py:80: in <module>
@@ -339,6 +346,10 @@ buildPythonPackage rec {
];
disabledTests = [
# fixture 'self' not found
"test_with_batched_input_exceeds_size_limit"
"test_with_batched_input_splits_large_batch"
# IndexError: list index out of range
"test_only_sample_exceptions"