mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-aiosasl: build with gpep517
This commit is contained in:
parent
154d7f9bb3
commit
f7c42d5f51
@ -3,24 +3,28 @@
|
|||||||
pkgname=py3-aiosasl
|
pkgname=py3-aiosasl
|
||||||
_pkgname=aiosasl
|
_pkgname=aiosasl
|
||||||
pkgver=0.5.0
|
pkgver=0.5.0
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="A generic asyncio-based SASL authentication library."
|
pkgdesc="A generic asyncio-based SASL authentication library."
|
||||||
url="https://pypi.org/project/aiosasl/"
|
url="https://pypi.org/project/aiosasl/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="LGPL-3.0-only"
|
license="LGPL-3.0-only"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-doc $pkgname-pyc"
|
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"
|
||||||
options="!check" # tests not included in source package.
|
options="!check" # tests not included in source package.
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
|
||||||
install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
|
install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
|
||||||
-t "$pkgdir"/usr/share/licenses/$pkgname
|
-t "$pkgdir"/usr/share/licenses/$pkgname
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user