user/py3-onelogin: new aport

This commit is contained in:
Antoine Martin 2024-01-05 18:37:52 -05:00
parent 37cc16bc08
commit e13e8b8638
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,50 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
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
"