backports/py3-click-didyoumean: move from user

This commit is contained in:
Antoine Martin 2023-05-05 09:38:54 -04:00
parent 96387b5427
commit 77be30d03a
Signed by: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 34 additions and 32 deletions

View file

@ -0,0 +1,34 @@
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-click-didyoumean
pkgver=0.3.0
pkgrel=1
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 \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH=src \
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
4927ee392f27950c3f7ef5e0f1d5a5e2421172f3e9d34ec76986c9c7ea698cfa1981678a06fb8682577d6ed04c242c42bdd1d796d7623a1c99dfdbdb61c80fca py3-click-didyoumean-0.3.0.tar.gz
"

View file

@ -1,32 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=click-didyoumean
pkgname="py3-$_pyname"
pkgver=0.3.0
pkgrel=2
arch="noarch"
pkgdesc="Enables git-like *did-you-mean* feature in click"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-click"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-vine"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
781d3f0f0ce7a8cbc297cce16647dd7bc8f2cc32db9071b68e896d8f01ef08382cd83051db685535b86a77b392ed93f6f8e453ed6d1299065a24df032cd046cb py3-click-didyoumean-0.3.0.tar.gz
"