From de5514c81cd3dc313e151ffbed5201d870814b9b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 20 Dec 2019 10:04:00 -0500 Subject: [PATCH] sr.ht/py3-importlib-metadata: new aport --- sr.ht/py3-importlib-metadata/APKBUILD | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sr.ht/py3-importlib-metadata/APKBUILD diff --git a/sr.ht/py3-importlib-metadata/APKBUILD b/sr.ht/py3-importlib-metadata/APKBUILD new file mode 100644 index 0000000..18331e2 --- /dev/null +++ b/sr.ht/py3-importlib-metadata/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Drew DeVault +# Maintainer: Drew DeVault +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" -- 2.45.2