user/py3-onelogin: new aport #339

Merged
ayakael merged 1 commit from py3-onelogin/initial into edge 2024-01-05 23:46:19 +00:00

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
"