| 1 | # Contributor: Antoine Martin (ayakael) <[email protected]> |
| 2 | # Maintainer: Antoine Martin (ayakael) <[email protected]> |
| 3 | pkgname=py3-billiard |
| 4 | pkgver=4.2.4 |
| 5 | pkgrel=1 |
| 6 | #_pkgreal is used by apkbuild-pypi to find modules at PyPI |
| 7 | _pkgreal=billiard |
| 8 | pkgdesc="Python multiprocessing fork with improvements and bugfixes" |
| 9 | url="https://pypi.org/project/billiard/" |
| 10 | arch="noarch" |
| 11 | license="BSD-3-Clause" |
| 12 | makedepends="py3-setuptools py3-wheel py3-gpep517" |
| 13 | checkdepends="py3-psutil py3-pytest" |
| 14 | subpackages="$pkgname-pyc" |
| 15 | source="https://files.pythonhosted.org/packages/source/b/billiard/billiard-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 17 | |
| 18 | replaces="py-billiard" # Backwards compatibility |
| 19 | provides="py-billiard=$pkgver-r$pkgrel" # Backwards compatibility |
| 20 | |
| 21 | build() { |
| 22 | gpep517 build-wheel \ |
| 23 | --wheel-dir .dist \ |
| 24 | --output-fd 3 3>&1 >&2 |
| 25 | } |
| 26 | |
| 27 | check() { |
| 28 | # t/unit/test_pool.py::test_pool::test_on_ready_counter_is_synchronized: timeout in riscv64 |
| 29 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 30 | .testenv/bin/python3 -m installer "$builddir"/.dist/*.whl |
| 31 | .testenv/bin/python3 -m pytest -v \ |
| 32 | --deselect t/unit/test_pool.py::test_pool::test_on_ready_counter_is_synchronized |
| 33 | } |
| 34 | |
| 35 | package() { |
| 36 | python3 -m installer -d "$pkgdir" \ |
| 37 | .dist/*.whl |
| 38 | } |
| 39 | |
| 40 | sha512sums=" |
| 41 | f05041661da59603da5bdcb3b696d75742d4cb7998f5bbf22474e001641f5be6cf693c3b329cda3e8983cc3fe56e5cc96a1d7880eefa5b2d68cd0d4ffe231626 billiard-4.2.4.tar.gz |
| 42 | " |