3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #215385 from samuela/samuela/apache-beam

python3Packages.apache-beam: 2.43.0 -> 2.44.0
This commit is contained in:
Nick Cao 2023-02-09 10:14:51 +08:00 committed by GitHub
commit 4f5f108f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, cython
, dill
, fastavro
, fasteners
, fetchFromGitHub
, fetchpatch
, freezegun
@ -11,11 +12,12 @@
, grpcio-tools
, hdfs
, httplib2
, hypothesis
, lib
, mock
, mypy-protobuf
, numpy
, oauth2client
, objsize
, orjson
, pandas
, parameterized
@ -26,32 +28,33 @@
, pydot
, pyhamcrest
, pymongo
, pytest-xdist
, pytestCheckHook
, python
, python-dateutil
, pythonAtLeast
, pythonRelaxDepsHook
, pytz
, pyyaml
, regex
, requests
, requests-mock
, scikit-learn
, setuptools
, sqlalchemy
, tenacity
, testcontainers
, typing-extensions
, zstandard
}:
buildPythonPackage rec {
pname = "apache-beam";
version = "2.43.0";
version = "2.44.0";
src = fetchFromGitHub {
owner = "apache";
repo = "beam";
rev = "refs/tags/v${version}";
sha256 = "sha256-lqGXCC66eyBnHcK06k9knggX5C+2d0m6xBAI5sh0RHo=";
hash = "sha256-5fnZxv2ZkFlv8vGDIt/6EL41v9P1iKa1tEd1nezq+PU=";
};
patches = [
@ -62,24 +65,22 @@ buildPythonPackage rec {
hash = "sha256-iUmnzrItTFM98w3mpadzrmtI3t0fucpSujAg/6qxCGk=";
stripLen = 2;
})
(fetchpatch {
# https://github.com/apache/beam/pull/24573
name = "relax-httplib2-version.patch";
url = "https://github.com/apache/beam/commit/4045503575ae5ccef3de8d7b868c54e37fef658b.patch";
hash = "sha256-YqT+sHaa1R9vLQnEQN2K0lYoCdnGoPY9qduGBpXPaek=";
stripLen = 2;
})
];
pythonRelaxDeps = [
# See https://github.com/NixOS/nixpkgs/issues/156957
"dill"
"numpy"
"pyarrow"
"pymongo"
# See https://github.com/NixOS/nixpkgs/issues/193613
"protobuf"
# As of apache-beam v2.44.0, the requirement is httplib2>=0.8,<0.21.0, but
# the current (2023-02-08) nixpkgs's httplib2 version is 0.21.0. This can be
# removed once beam is upgraded since the current requirement on master is
# for httplib2>=0.8,<0.22.0.
"httplib2"
];
sourceRoot = "source/sdks/python";
@ -94,14 +95,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [
cloudpickle
crcmod
cython
dill
fastavro
fasteners
grpcio
hdfs
httplib2
numpy
oauth2client
objsize
orjson
proto-plus
protobuf
@ -110,9 +111,10 @@ buildPythonPackage rec {
pymongo
python-dateutil
pytz
regex
requests
setuptools
typing-extensions
zstandard
];
enableParallelBuilding = true;
@ -121,14 +123,16 @@ buildPythonPackage rec {
"apache_beam"
];
nativeCheckInputs = [
checkInputs = [
freezegun
hypothesis
mock
pandas
parameterized
psycopg2
pyhamcrest
pytestCheckHook
pytest-xdist
pyyaml
requests-mock
scikit-learn
@ -160,6 +164,13 @@ buildPythonPackage rec {
# Fails starting from dill 0.3.6 because it tries to pickle pytest globals:
# https://github.com/uqfoundation/dill/issues/482#issuecomment-1139017499.
"apache_beam/transforms/window_test.py"
# See https://github.com/apache/beam/issues/25390.
"apache_beam/coders/slow_coders_test.py"
"apache_beam/dataframe/pandas_doctests_test.py"
"apache_beam/typehints/typed_pipeline_test.py"
"apache_beam/coders/fast_coders_test.py"
"apache_beam/dataframe/schemas_test.py"
];
disabledTests = [