A py3-influxdb-client/APKBUILD => py3-influxdb-client/APKBUILD +38 -0
@@ 0,0 1,38 @@
+# Contributor: chimo <chimo@chromic.org>
+# Maintainer: chimo <chimo@chromic.org>
+pkgname=py3-influxdb-client
+pkgver=1.47.0
+pkgrel=0
+_pkgreal=influxdb-client
+pkgdesc="InfluxDB 2.0 Python client library"
+url="https://pypi.org/project/influxdb-client/"
+arch="noarch"
+depends="py3-rx py3-certifi py3-dateutil py3-setuptools py3-urllib3"
+makedepends="py3-gpep517 py3-setuptools py3-wheel"
+options="!check" # TODO: enable tests
+#checkdepends="py3-pytest"
+subpackages="$pkgname-pyc"
+source="https://files.pythonhosted.org/packages/source/i/influxdb-client/influxdb_client-$pkgver.tar.gz"
+builddir="$srcdir/influxdb_client-$pkgver"
+license="MIT"
+
+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="
+902a8a9116bbcbb15204fac3d7205f51426055c7624caacdfb9a5b02d738b0202728d1c3704fc6c4f7ff4683bd496f3c0a66139c2c2b6ef9f8a9830ea3220d36 influxdb_client-1.47.0.tar.gz
+"