archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-importlib-metadata / trunk / PKGBUILD
bloba2a6a1c7bfe30125cd09792fe34a5362df57dc19
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-importlib-metadata
4 pkgver=5.0.0
5 _commit=009ace37032742922d5fa04c62f04cea703ade2d
6 pkgrel=5
7 pkgdesc="Read metadata from Python packages"
8 url="https://importlib-metadata.readthedocs.io"
9 license=('Apache')
10 arch=('any')
11 depends=('python-zipp')
12 makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
13 checkdepends=('python-pytest' 'python-pyfakefs' 'python-pip' 'python-tests')
14 source=("git+https://github.com/python/importlib_metadata.git#commit=$_commit")
15 sha512sums=('SKIP')
17 build() {
18   cd importlib_metadata
19   python -m build -nw
22 check() {
23   cd importlib_metadata
24   python -m pytest --ignore exercises.py
27 package() {
28   cd importlib_metadata
29   python -m installer -d "$pkgdir" dist/*.whl