mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 07:44:59 +02:00
71 lines
2.4 KiB
Text
71 lines
2.4 KiB
Text
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=py3-joblib
|
|
pkgver=1.5.1
|
|
pkgrel=0
|
|
pkgdesc="Computing with Python functions"
|
|
url="https://joblib.readthedocs.org/en/latest/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-cloudpickle
|
|
py3-distributed
|
|
py3-loky
|
|
"
|
|
makedepends="
|
|
cython
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-threadpoolctl
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://pypi.python.org/packages/source/j/joblib/joblib-$pkgver.tar.gz
|
|
de-vendor.patch
|
|
"
|
|
|
|
builddir="$srcdir/joblib-$pkgver"
|
|
#options="net" # Net access required for tests, https://github.com/joblib/joblib/issues/1084
|
|
options="!check" # Fail to quit properly
|
|
|
|
# secfixes:
|
|
# 1.2.0-r0:
|
|
# - CVE-2022-21797
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest joblib/test -k 'not test_joblib_pickle_across_python_versions_with_mmap' \
|
|
--deselect joblib/test/test_parallel.py::test_threadpool_limitation_in_child[2] \
|
|
--deselect joblib/test/test_parallel.py::test_threadpool_limitation_in_child[4] \
|
|
--deselect joblib/test/test_parallel.py::test_threadpool_limitation_in_child_context[2-None] \
|
|
--deselect joblib/test/test_memmapping.py::test_permission_error_windows_memmap_sent_to_parent[loky] \
|
|
--deselect joblib/test/test_memmapping.py::test_multithreaded_parallel_termination_resource_tracker_silent \
|
|
--deselect joblib/test/test_memmapping.py::test_many_parallel_calls_on_same_object[loky] \
|
|
--deselect joblib/test/test_parallel.py::test_memmapping_leaks[loky] \
|
|
--deselect joblib/test/test_parallel.py::test_thread_bomb_mitigation[loky] \
|
|
--deselect joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter[True] \
|
|
--deselect joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter[False] \
|
|
--deselect joblib/test/test_dask.py
|
|
}
|
|
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
|
|
rm -r "$pkgdir"/usr/lib/python3*/site-packages/joblib/test
|
|
}
|
|
|
|
sha512sums="
|
|
1ca99d55e2a921beefbbb95dc6e1c6f353b28c9e31cfb708ef5a822df0d09f7947ad0d3dad5c52ccf4c96236f5bb86afb93600518e0a9a61fb2050084ef13194 joblib-1.5.1.tar.gz
|
|
3134c38c71881b7521bf2d23ec0b3fedf52ad8a6741d786df0235df3a08aa2340d321c3ce1739672ca4cce73ca1efa2443be317ea223ce3fff4cf4bac09d726d de-vendor.patch
|
|
"
|