A sr.ht/py3-importlib-metadata/APKBUILD => sr.ht/py3-importlib-metadata/APKBUILD +29 -0
@@ 0,0 1,29 @@
+# Contributor: Drew DeVault <sir@cmpwn.com>
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py3-importlib-metadata
+_pyname=importlib_metadata
+pkgver=1.3.0
+pkgrel=0
+pkgdesc="Read metadata from Python packages"
+url="https://pypi.org/project/importlib-metadata/"
+arch="noarch"
+license="Apache-2.0"
+depends="py3-pathlib2"
+makedepends="py3-setuptools py3-setuptools_scm"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pyname-$pkgver
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="45d09cbbbceee80a4769f2d374a3c4b511fda56a100ad1a6fc7cedf9a0cd251600c960430c608c7bcd60bdd9a0117f83025ed7b05f9f6a53edc791d128e8b0d7 importlib_metadata-1.3.0.tar.gz"