mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-python-jose
|
|
pkgver=3.5.0
|
|
pkgrel=0
|
|
pkgdesc="A JOSE implementation in Python"
|
|
url="https://github.com/mpdavis/python-jose/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-cryptography py3-pycryptodome py3-pytest-runner"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="python-jose-$pkgver.tar.gz::https://github.com/mpdavis/python-jose/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-jose-$pkgver"
|
|
|
|
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() {
|
|
python -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
install -vDm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
|
|
}
|
|
|
|
sha512sums="
|
|
8ecebb3133b1ec237aeaab6967e172e70de0e965ae39089e6a336bc00ac0a693dbfcfb90002284f89e1cd88d1570ea482c5d56fd9a04848a384e9a34a460648c python-jose-3.5.0.tar.gz
|
|
"
|