mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-nanoid: build with gpep517
This commit is contained in:
parent
c6ccc9c4b8
commit
1ce1829506
@ -2,13 +2,13 @@
|
||||
pkgname=py3-nanoid
|
||||
_pyname=${pkgname/py3-/}
|
||||
pkgver=2.0.0
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Tiny, secure, URL-friendly, unique string ID generator for Python"
|
||||
url="https://github.com/puyuan/py-nanoid"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$_pyname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/n/nanoid/nanoid-$pkgver.tar.gz"
|
||||
@ -16,11 +16,14 @@ builddir="$srcdir/$_pyname-$pkgver"
|
||||
options="!check" # No test included in the source tarball
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user