33 lines
968 B
Plaintext
33 lines
968 B
Plaintext
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=python-zipp
|
|
pkgver=3.10.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=('ca0103742051648531b2df57545018f779b166fb25117254ea4826ec5364b1fb501fab68aa56d5ffe86df563116027a68858e87a9eacb9b67fb50ad51cbf1066')
|
|
|
|
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/
|
|
}
|