diff --git a/user/py3-onelogin/APKBUILD b/user/py3-onelogin/APKBUILD new file mode 100644 index 0000000..8d91856 --- /dev/null +++ b/user/py3-onelogin/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-onelogin +_pkgname=onelogin-python-sdk +pkgver=3.1.6 +pkgrel=0 +pkgdesc="OpenAPI Specification for OneLogin" +url="https://github.com/onelogin/onelogin-python-sdk" +license="MIT" +arch="noarch" +depends=" + py3-dateutil + py3-urllib3 + py3-frozendict + py3-typing-extensions + py3-certifi + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-wheel + py3-installer + " +checkdepends=" + py3-pytest + " +source="$pkgname-$pkgver.tar.gz::https://github.com/onelogin/onelogin-python-sdk/archive/$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver +options="!check" # Failing test unit +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + pytest -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +44fccb05e82c55db82617c33cc0e2287699969d9a7f12a4992c0cd35c28b2215c66bef37849e45b5506df11524d1b143a2ab3ae16f001af51f0135c92d0801a4 py3-onelogin-3.1.6.tar.gz +" +