aports/testing/py3-aiodocker/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

40 lines
1.2 KiB
Text

# Automatically generated by apkbuild-pypi, template 4
# Contributor: Niklas Meyer <derlinkman@gmail.com>
# Maintainer: Niklas Meyer <derlinkman@gmail.com>
pkgname=py3-aiodocker
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=aiodocker
pkgver=0.21.0
pkgrel=1
pkgdesc="Docker API client for asyncio"
url="https://pypi.org/project/aiodocker/"
arch="noarch"
license="Apache-2.0"
depends="py3-aiohttp py3-typing-extensions"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/a/aiodocker/aiodocker-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" #check needs docker
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
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
55fc5015edea5ffe17798aa5a3e1b85b68f7ee011ac7fd94adbecf659a55f537b75f5c5d768e70d364c1337e4bcbe5cabed4dd5cdb3f35ff140d641411038562 aiodocker-0.21.0.tar.gz
"