mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
65 lines
2.2 KiB
Text
65 lines
2.2 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-joblib
|
|
pkgver=1.2.0
|
|
pkgrel=1
|
|
pkgdesc="Computing with Python functions"
|
|
options="net" # Net access required for tests, https://github.com/joblib/joblib/issues/1084
|
|
url="https://joblib.readthedocs.org/en/latest/"
|
|
arch="noarch !s390x" # test fail
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-cloudpickle
|
|
py3-distributed
|
|
py3-loky
|
|
python3
|
|
"
|
|
makedepends="
|
|
cython
|
|
py3-setuptools
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-threadpoolctl
|
|
"
|
|
source="https://pypi.python.org/packages/source/j/joblib/joblib-$pkgver.tar.gz
|
|
de-vendor.patch
|
|
"
|
|
|
|
builddir="$srcdir/joblib-$pkgver"
|
|
# AttributeError: 'Nanny' object has no attribute 'add_done_callback'
|
|
options="!check"
|
|
|
|
# secfixes:
|
|
# 1.2.0-r0:
|
|
# - CVE-2022-21797
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest -v joblib \
|
|
--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 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
# Remove tests and vendored dependencies
|
|
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
|
|
rm -r "$pkgdir"/usr/lib/python$_py3ver/site-packages/joblib/test
|
|
rm -r "$pkgdir"/usr/lib/python$_py3ver/site-packages/joblib/externals
|
|
}
|
|
|
|
sha512sums="
|
|
482e085f014ef7247d0717440eede106d0783e5400edc54066f804fdf76580ac641a8b7632187b497a52e919bc293ad3a7b05cf8ecb5733c064354b788a0cb15 joblib-1.2.0.tar.gz
|
|
1fb0c4c1d9a2dc156f6af5a1dc271061953229df85d93cfb3a810b8c8ef519a4b3cfd53f580927cc20087512006181eb294c0969070e6239a3ef6673e79f14ee de-vendor.patch
|
|
"
|