mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
29 lines
801 B
Bash
29 lines
801 B
Bash
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
|
pkgname=python-opnieuw
|
|
pkgver=3.1.0
|
|
pkgrel=2
|
|
pkgdesc="A general-purpose retrying library, written in pure Python"
|
|
arch=('any')
|
|
url="https://github.com/channable/opnieuw"
|
|
license=('BSD-3-Clause')
|
|
depends=('python' 'python-typing_extensions')
|
|
makedepends=(python-build python-installer python-setuptools{,-scm})
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
|
sha256sums=('d57ca44672b4a81a6fd73e8d8f039e4cab0149e361c8b0e3a036fa5588544802')
|
|
|
|
build() {
|
|
cd "opnieuw-$pkgver"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd "opnieuw-$pkgver"
|
|
python -m unittest
|
|
}
|
|
|
|
package() {
|
|
cd "opnieuw-$pkgver"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
}
|