jobextra/python-zipp/PKGBUILD-arch

33 lines
968 B
Plaintext

# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-zipp
pkgver=3.11.0
pkgrel=1
pkgdesc="Pathlib-compatible object wrapper for zip files"
url="https://github.com/jaraco/zipp"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-toml' 'python-wheel')
checkdepends=('python-jaraco.itertools' 'python-func-timeout' 'python-more-itertools')
source=("https://github.com/jaraco/zipp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('e2235fc684bbe974db02298de36220e202372e13a97fa652e4e49bf1b365918d7b523ce588d273474736c12c2c23cffa39ab529ee9e75d1d1eb07d35bae3d620')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd zipp-$pkgver
python -m build -nw
}
check() {
cd zipp-$pkgver
python -m unittest discover
}
package() {
cd zipp-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}