~dricottone/huttese-apk

ref: 9cabda84ee4d3d329ce9566a7cd0a137c80c71fd huttese-apk/sr.ht/py3-importlib-metadata/APKBUILD -rw-r--r-- 895 bytes
9cabda84 — Drew DeVault py3-importlib-metadata: add py3-packaging to checkdepends 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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"
checkdepends="py3-packaging"
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"