aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-wheel/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py3-wheel/APKBUILD')
-rw-r--r--main/py3-wheel/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/py3-wheel/APKBUILD b/main/py3-wheel/APKBUILD
new file mode 100644
index 0000000000..7f16d3ce11
--- /dev/null
+++ b/main/py3-wheel/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
+# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
+pkgname=py3-wheel
+_pyname=wheel
+pkgver=0.36.2
+pkgrel=2
+pkgdesc="built-package format for Python"
+options="!check" # Testsuite fails
+url="https://github.com/pypa/wheel"
+arch="noarch"
+license="MIT"
+subpackages="$pkgname-doc"
+depends="python3 py3-packaging"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
+ use-system-packaging.patch
+ "
+builddir="$srcdir"/$_pyname-$pkgver
+
+build() {
+ rm -rf src/wheel/vendored
+
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm 0644 "$srcdir"/$_pyname-$pkgver/docs/index.rst "$pkgdir/usr/share/doc/py3-wheel"
+}
+sha512sums="73f5c6e77b8c396163b02e12ce7291e32960d771c732d8e97476971201b29e654d53551b2ce17db1fbde5697ced1908607995cac38fe2b61c63aec6abd4b6aaf wheel-0.36.2.tar.gz
+e20281a6fd42cf6dd24be9edf6b469cc7da0c03012127f5224a03c7cd40c785a8f7ae8e4c9829b590e5ca1242300224dcb7c3e571a9347736608512065a27065 use-system-packaging.patch"