ayaports/testing/py3-opencontainers/APKBUILD

46 lines
967 B
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=opencontainers
pkgname="py3-$_pyname"
pkgver=0.0.14
pkgrel=0
2023-08-11 19:49:05 +00:00
arch="noarch"
2022-12-27 20:40:33 +00:00
pkgdesc="Python module for oci specifications"
url="https://pypi.python.org/project/$_pyname"
license="MPL-2.0"
depends="
py3-requests
"
makedepends="
py3-setuptools
py3-installer
py3-gpep517
py3-wheel
"
checkdepends="
py3-pytest
"
2022-12-27 20:40:33 +00:00
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
2022-12-27 20:40:33 +00:00
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2022-12-27 20:40:33 +00:00
}
check() {
pytest -v
2022-12-27 20:40:33 +00:00
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
2022-12-27 20:40:33 +00:00
}
2022-12-27 20:40:33 +00:00
sha512sums="
b0f0edb8d11c825e7bd64b0c38fb227823de0065dc35703cc930e5ad3a5c875abe5a8c8e16f34331ca2246f48887d34ab9749ca3b547216e0ece1aa7659dc845 py3-opencontainers-0.0.14.tar.gz
"