mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 16:21:38 +01:00
- Ref install https://github.com/mpdavis/python-jose/releases/tag/3.4.0 - Add MIT license
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-python-jose
|
|
pkgver=3.4.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="
|
|
61988e07a2251b475346ac56d7845e1c573e1c4b7bdccec13937c31c325c0731c6679047451a08be79044e5a57a5470e90b43bb94b0a249c84c11675779f3dcf python-jose-3.4.0.tar.gz
|
|
"
|