32 lines
970 B
Text
32 lines
970 B
Text
# 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=1
|
|
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() {
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/src" pytest || true
|
|
}
|
|
|
|
package() {
|
|
python 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
|
|
"
|