diff options
Diffstat (limited to 'dev-python/pyarrow')
-rw-r--r-- | dev-python/pyarrow/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyarrow/pyarrow-12.0.1.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/pyarrow/Manifest b/dev-python/pyarrow/Manifest index 7230869cb4ad..6bf51c22c2c1 100644 --- a/dev-python/pyarrow/Manifest +++ b/dev-python/pyarrow/Manifest @@ -1,4 +1,6 @@ AUX pyarrow-12.0.0-tests.patch 4608 BLAKE2B 89a543188ccb6d736ee89546cfd238d52688002c2000dbd044a85b84731bb7f54fda2e406fb60ffe89f307c8078a7f1dc75146a074ff8198f1573808348ce784 SHA512 d0eea87b5b6e8cc3a444daf3c0df7371c8936b851cb542214f6c30bf0a85741e3e2530025557d8a7f01b2678c1dd8a758c8ac28a3f341099151e35192a674e6e DIST apache-arrow-12.0.0.tar.gz 20159048 BLAKE2B 43b4f36e1d1f84fc83c46a3627ad72cead38310f4325b8d21d17d726cd416016f0839d312c80737c0a921da6aefee537413e30309a656301c19834c2986d734e SHA512 f815be4fb20b6001ba5525270765fe239b5468708a7be34b93b60ee0ce63464727d183c9756fbc33bffd199019e1f06a7fddd306ce8388435cea7771070a2ca9 +DIST apache-arrow-12.0.1.tar.gz 20172604 BLAKE2B bf66761d33ceb778c2f53c2e643e0c2bb4448f29eaa94d17e9815628665f4965fde28bd47fce4a5874717d2161c3f8adbb2e8a0e6658a51ae6d617e4f09d202b SHA512 551ae200551fcc73b7deddcc5f0b06633159ab1308506901a9086e4e2e34e4437f26d609fdbacba0ebe7d1fe83bdb8e92a268e9e41575d655d5b2d4fbef7a7ce EBUILD pyarrow-12.0.0.ebuild 1364 BLAKE2B 5f7479fb26921448a43889267e6a0abd26575e4ad9e125aabd121de683e955d7134c754975b2b8aad105f53d222d61eb33547fbdb0893a0fb12f276e1a45d603 SHA512 663abcb36e8716c7e91de28cf0a4f2ba22fa138db7e1fcd5e38946ddb7d746b9fadcd2cd68f12e54c67bd821ad9f42c35b3e9137f8b9f48ce20cbcd1f7adf507 +EBUILD pyarrow-12.0.1.ebuild 1698 BLAKE2B 0b37b3e6fcef08909f6a0b714f019c8c0d2d069215aeffd97f99f0dff76faae8125c8af492ea9b1eff84628462a874d1d0195380b49b9edce0f260a283082288 SHA512 4357e57fa47ec7e2751730a8666b09c878abcd362163b4b57ed1551e6e10505fa089a370d6439efa36066c5a065a3708237c1f87d7e0bd48964c8610fe32a047 MISC metadata.xml 454 BLAKE2B aef32100cb88b74361bc57c83179ce223bab58fd2d33c0274011350f1021f8f738008a64b74995d005f9b53edf45d9e0168a38101e041297d38805529b7af416 SHA512 2b7d53db25c36faca27aa8885479396ad2b510d8fba9b421d969fd23505b5026b48a9869ab941fa8d09c2a399ed6f211d8694bc3ed05dc5bf583d7be1fc0e679 diff --git a/dev-python/pyarrow/pyarrow-12.0.1.ebuild b/dev-python/pyarrow/pyarrow-12.0.1.ebuild new file mode 100644 index 000000000000..7ac59fddb3d9 --- /dev/null +++ b/dev-python/pyarrow/pyarrow-12.0.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Python library for Apache Arrow" +HOMEPAGE=" + https://pypi.org/project/pyarrow/ + https://arrow.apache.org/ +" +SRC_URI="mirror://apache/arrow/arrow-${PV}/apache-arrow-${PV}.tar.gz" +S="${WORKDIR}/apache-arrow-${PV}/python" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="parquet snappy ssl" + +RDEPEND=" + ~dev-libs/apache-arrow-${PV}[compute,dataset,json,parquet?,re2,snappy?,ssl?] + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + <dev-python/pandas-2[${PYTHON_USEDEP}] + dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # wtf? + tests/test_fs.py::test_localfs_errors + # these require apache-arrow with jemalloc that doesn't seem + # to be supported by the Gentoo package + tests/test_memory.py::test_env_var + tests/test_memory.py::test_specific_memory_pools + tests/test_memory.py::test_supported_memory_backends +) + +src_compile() { + export PYARROW_PARALLEL="$(makeopts_jobs)" + export PYARROW_BUILD_VERBOSE=1 + export PYARROW_CXXFLAGS="${CXXFLAGS}" + export PYARROW_BUNDLE_ARROW_CPP_HEADERS=0 + export PYARROW_CMAKE_GENERATOR=Ninja + export PYARROW_WITH_HDFS=1 + if use parquet; then + export PYARROW_WITH_DATASET=1 + export PYARROW_WITH_PARQUET=1 + use ssl && export PYARROW_WITH_PARQUET_ENCRYPTION=1 + fi + if use snappy; then + export PYARROW_WITH_SNAPPY=1 + fi + + distutils-r1_src_compile +} + +python_test() { + cd "${T}" || die + epytest --pyargs pyarrow +} |