Skip to content
Snippets Groups Projects
Commit f7c42d5f authored by Patrycja Rosa's avatar Patrycja Rosa :cat:
Browse files

testing/py3-aiosasl: build with gpep517

parent 154d7f9b
No related branches found
No related tags found
No related merge requests found
......@@ -3,24 +3,28 @@
pkgname=py3-aiosasl
_pkgname=aiosasl
pkgver=0.5.0
pkgrel=3
pkgrel=4
pkgdesc="A generic asyncio-based SASL authentication library."
url="https://pypi.org/project/aiosasl/"
arch="all"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
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 \
-t "$pkgdir"/usr/share/licenses/$pkgname
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment