From 6b7c3cf6554c65112523904df2b43c41acc4dde9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 20 Dec 2019 16:16:52 -0500 Subject: [PATCH] sr.ht/py3-wheel: new aport --- sr.ht/py3-wheel/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sr.ht/py3-wheel/APKBUILD diff --git a/sr.ht/py3-wheel/APKBUILD b/sr.ht/py3-wheel/APKBUILD new file mode 100644 index 0000000..a4f8049 --- /dev/null +++ b/sr.ht/py3-wheel/APKBUILD @@ -0,0 +1,30 @@ +# Maintainer: Drew DeVault +pkgname=py3-wheel +_pyname=wheel +pkgver=0.33.6 +pkgrel=0 +pkgdesc="A built-package format for Python." +url="https://pypi.org/project/wheel/" +arch="noarch" +license="MIT" +depends="python3" +makedepends="python3-dev py3-setuptools" +checkdepends="py3-pytest py3-pytest-cov" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" +options="!check" # https://github.com/pypa/wheel/issues/299 + +build() { + python3 setup.py build +} + +check() { + PYTHONPATH=$PYTHONPATH:$builddir pytest-3 +} + +package() { + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums="887020c543ce7720c37f4d52f3f482365203ccb232d29c780d5593758c60997ac5383ea4724d4dc0b7237e2366f3d98a28773c18d15d6f7e898721cd6ac94cc6 wheel-0.33.6.tar.gz" -- 2.45.2