aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-importlib-metadata/APKBUILD
blob: a58961668b19ba0e40ceba1dae972ba8c710ebef (plain) (blame)
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
31
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-importlib-metadata
_pkgname=importlib_metadata
pkgver=1.7.0
pkgrel=0
pkgdesc="Tool to read metadata from Python packages"
url="https://gitlab.com/python-devs/importlib_metadata"
arch="noarch"
license="Apache-2.0"
depends="py3-zipp"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-importlib-metadata" # Backwards compatibility
provides="py-importlib-metadata=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="31f7cda6a1149ca2040032945b19b55d2e97ef8be67db1423c2c2cbb79da3dead46338f3c9eb03b46f9202fca08ed7bf388adc25d34903ddff4b2873c8a89aba  importlib_metadata-1.7.0.tar.gz"