47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=python-zipp
|
|
pkgver=3.17.0
|
|
_commit=5c59b561f5b79631a846b8823d5033cc1407b511
|
|
pkgrel=01
|
|
pkgdesc="Pathlib-compatible object wrapper for zip files"
|
|
url="https://github.com/jaraco/zipp"
|
|
depends=('python')
|
|
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
|
|
#3.14.0 checkdepends=('python-jaraco.itertools' 'python-func-timeout' 'python-more-itertools')
|
|
checkdepends=('python-pytest' 'python-pytest-enabler' 'python-pytest-mypy'
|
|
'python-jaraco.itertools' 'python-more-itertools' 'python-big-o' 'python-pytest-ignore-flaky')
|
|
#source=("https://github.com/jaraco/zipp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
|
source=("git+https://github.com/jaraco/zipp.git#commit=$_commit")
|
|
#export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
|
|
build() {
|
|
cd zipp
|
|
python -m build -nw
|
|
}
|
|
|
|
check() {
|
|
cd zipp
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
cd zipp
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('MIT')
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## 4d521bdb4dfcd90865de8000bf88efb8004dad92dcd01d5508d394971bfe70a6 python-zipp-3.17.0-01-x86_64.pkg.tar.lz
|