testing/py3-cloudflare: new aport

This commit is contained in:
Lauren N. Liberda 2023-03-31 19:01:05 +02:00 committed by psykose
parent e9c4c36cb9
commit c4e71f96bc

View File

@ -0,0 +1,48 @@
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=py3-cloudflare
pkgver=2.11.1
pkgrel=0
pkgdesc="Python wrapper for the Cloudflare Client API v4"
url="https://github.com/cloudflare/python-cloudflare"
arch="noarch"
license="MIT"
depends="
py3-beautifulsoup4
py3-future
py3-jsonlines
py3-requests
py3-yaml
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="https://github.com/cloudflare/python-cloudflare/archive/refs/tags/$pkgver/python-cloudflare-$pkgver.tar.gz"
builddir="$srcdir/python-cloudflare-$pkgver"
options="!check" # no tests
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="
d55733a6a9275ab5914ab044ec9d12214a2f378f871b17901827d64fc2280b0e401339076236e61c305061186d1f30d826946a0efa9a98dd2d62cce81068db54 python-cloudflare-2.11.1.tar.gz
"