mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 09:14:35 +02:00
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-josepy
|
|
_pkgname=josepy
|
|
pkgver=2.0.0
|
|
pkgrel=1
|
|
pkgdesc="JOSE protocol implementation in Python"
|
|
url="https://github.com/certbot/josepy"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-cryptography py3-openssl"
|
|
makedepends="libffi-dev python3-dev py3-gpep517 poetry py3-pytest py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$_pkgname-$pkgver.tar.gz::https://github.com/certbot/josepy/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces=py-josepy # Backwards compatibility
|
|
provides=py-josepy=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py check
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
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() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
# https://github.com/certbot/josepy/issues/172
|
|
rm CHANGELOG.rst CONTRIBUTING.md
|
|
}
|
|
|
|
sha512sums="
|
|
fd944a7b65311fa58a59f5f28d985baf9ab40f1c7e117a41f3fd7c201edfda333bf33a60f86eb4fd1c8c481b68c499bf3749fab30cb4be560a9187d3578a260c josepy-2.0.0.tar.gz
|
|
"
|