backports/py3-jwcrypto: new aport
This commit is contained in:
parent
183ffc3d9c
commit
181d8f8cf2
1 changed files with 21 additions and 11 deletions
|
@ -2,30 +2,40 @@
|
||||||
# Maintainer: prspkt <prspkt@protonmail.com>
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
||||||
pkgname=py3-jwcrypto
|
pkgname=py3-jwcrypto
|
||||||
_pkgname=jwcrypto
|
_pkgname=jwcrypto
|
||||||
pkgver=0.8
|
pkgver=1.5.6
|
||||||
pkgrel=3
|
pkgrel=0
|
||||||
pkgdesc="Python module implementing JOSE Web standards"
|
pkgdesc="Python module implementing JOSE Web standards"
|
||||||
url="https://github.com/latchset/jwcrypto"
|
url="https://github.com/latchset/jwcrypto"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="LGPL-3.0-only"
|
license="LGPL-3.0-only"
|
||||||
depends="python3 py3-cryptography py3-six"
|
depends="python3 py3-typing-extensions py3-cryptography"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc $pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||||||
|
|
||||||
|
# secfixes:
|
||||||
|
# 1.5.1-r0:
|
||||||
|
# - CVE-2023-6681
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$builddir"/$_pkgname
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
py.test-3
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="e8dc62d6159e5722a572e049c41edc8e31fe0d022aa47987ab6720c7057cbac2f98cec5d35af1ea02f6bc6efde769810fde4b868e019956b138cfac529cc027d jwcrypto-0.8.tar.gz"
|
sha512sums="
|
||||||
|
321de20492ee509de261d1fb2b20e3a94239db76fec45deca50b3e0ce7163bf0051bb4433a6eb24bffd2bd657d41c50b403fa7477a6b95b8d043e3fda5cdaac2 jwcrypto-1.5.6.tar.gz
|
||||||
|
"
|
||||||
|
|
Loading…
Reference in a new issue