upgpkg: python-preggy 1.4.4-2

switched to PEP 517
This commit is contained in:
2024-01-13 17:44:41 +01:00
parent a0b73f129d
commit 645b709ce0
2 changed files with 8 additions and 5 deletions

View File

@@ -3,20 +3,20 @@
pkgname=python-preggy
_name=${pkgname#python-}
pkgver=1.4.4
pkgrel=1
pkgrel=2
pkgdesc="assertion library for Python"
arch=(any)
url="https://github.com/heynemann/preggy"
license=(MIT)
depends=(python-six python-colorama python-unidecode)
makedepends=(python-setuptools)
makedepends=(python-build python-installer python-wheel python-setuptools)
checkdepends=(python-pytest)
source=("https://github.com/heynemann/preggy/archive/refs/tags/$pkgver.tar.gz")
b2sums=('8d600e1c1e1e2948c31e7dbec907d87bd3590dfdecb22ee22a3f75ca65f22d50bc204fd0751327ac8ca22856d84f2ee7ddc1b42710f956e9c22b3e72d6047a65')
build() {
cd $_name-$pkgver
python setup.py build
python -m build --wheel --no-isolation
}
check() {
@@ -26,7 +26,7 @@ check() {
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}