2023-11-24 22:45:11 +00:00
|
|
|
# Contributor: psykose <alice@ayaya.dev>
|
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
2023-05-05 13:38:54 +00:00
|
|
|
pkgname=py3-click-didyoumean
|
|
|
|
pkgver=0.3.0
|
2023-11-24 22:45:11 +00:00
|
|
|
pkgrel=3
|
2023-05-05 13:38:54 +00:00
|
|
|
pkgdesc="Git-like did-you-mean feature in click"
|
|
|
|
url="https://github.com/click-contrib/click-didyoumean"
|
|
|
|
arch="noarch"
|
|
|
|
license="MIT"
|
|
|
|
depends="python3 py3-click"
|
|
|
|
makedepends="py3-gpep517 py3-poetry-core"
|
|
|
|
checkdepends="py3-pytest"
|
|
|
|
subpackages="$pkgname-pyc"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-didyoumean/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/click-didyoumean-$pkgver"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
gpep517 build-wheel \
|
2023-11-24 22:45:11 +00:00
|
|
|
--wheel-dir .dist \
|
2023-05-05 13:38:54 +00:00
|
|
|
--output-fd 3 3>&1 >&2
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
PYTHONPATH=src \
|
|
|
|
pytest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
python3 -m installer -d "$pkgdir" \
|
2023-11-24 22:45:11 +00:00
|
|
|
.dist/*.whl
|
2023-05-05 13:38:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
4927ee392f27950c3f7ef5e0f1d5a5e2421172f3e9d34ec76986c9c7ea698cfa1981678a06fb8682577d6ed04c242c42bdd1d796d7623a1c99dfdbdb61c80fca py3-click-didyoumean-0.3.0.tar.gz
|
|
|
|
"
|