mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
community/py3-pynacl: build with gpep517; fixes failing check phase
This commit is contained in:
parent
633a750941
commit
ebb51b3c34
1 changed files with 10 additions and 5 deletions
|
@ -2,13 +2,13 @@
|
||||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||||
pkgname=py3-pynacl
|
pkgname=py3-pynacl
|
||||||
pkgver=1.5.0
|
pkgver=1.5.0
|
||||||
pkgrel=5
|
pkgrel=6
|
||||||
pkgdesc="Python3 binding to the Networking and Cryptography (NaCl) library"
|
pkgdesc="Python3 binding to the Networking and Cryptography (NaCl) library"
|
||||||
url="https://github.com/pyca/pynacl"
|
url="https://github.com/pyca/pynacl"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
depends="py3-cffi"
|
depends="py3-cffi"
|
||||||
makedepends="py3-setuptools python3-dev libffi-dev py3-wheel"
|
makedepends="py3-gpep517 py3-setuptools python3-dev libffi-dev py3-wheel"
|
||||||
checkdepends="py3-pytest py3-hypothesis"
|
checkdepends="py3-pytest py3-hypothesis"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://github.com/pyca/pynacl/archive/$pkgver/pynacl-$pkgver.tar.gz
|
source="https://github.com/pyca/pynacl/archive/$pkgver/pynacl-$pkgver.tar.gz
|
||||||
|
@ -21,15 +21,20 @@ replaces="py-pynacl" # Backwards compatibility
|
||||||
provides="py-pynacl=$pkgver-r$pkgrel" # Backwards compatibility
|
provides="py-pynacl=$pkgver-r$pkgrel" # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 setup.py test
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.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="
|
sha512sums="
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue