archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-click-didyoumean / repos / community-any / PKGBUILD
blobcfd914260f966d2b3cfa233e85fe03bdf3d44bc6
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-click-didyoumean
4 pkgver=0.3.0
5 pkgrel=2
6 pkgdesc="Enable git-like did-you-mean feature in click"
7 url="https://github.com/click-contrib/click-didyoumean"
8 license=('MIT')
9 arch=('any')
10 depends=('python-click')
11 makedepends=('python-build' 'python-installer' 'python-poetry-core')
12 checkdepends=('python-pytest')
13 source=("https://github.com/click-contrib/click-didyoumean/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('4927ee392f27950c3f7ef5e0f1d5a5e2421172f3e9d34ec76986c9c7ea698cfa1981678a06fb8682577d6ed04c242c42bdd1d796d7623a1c99dfdbdb61c80fca')
16 build() {
17   cd click-didyoumean-$pkgver
18   python -m build -nw
21 check() {
22   cd click-didyoumean-$pkgver
23   PYTHONPATH="$PWD/src" pytest
26 package() {
27   cd click-didyoumean-$pkgver
28   python -m installer --destdir="$pkgdir" dist/*.whl
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/