summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a2250189b25f3eba50a5b76baa3e1f93caa4b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Daringcuteseal <daringcuteseal@gmail.com>
pkgname=python-decli
pkgver=0.6.2
pkgrel=1
pkgdesc="Minimal, easy to use, declarative command line interface tool"
arch=('any')
url="https://github.com/Woile/decli"
license=('MIT')
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
)
checkdepends=(
  'python-pytest'
)
depends=()
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e29abae67388aca6b4517bf048f0ea723fe93f5af6b06bbea6cbbc766d0086fd')

_pkgname="${pkgname/python-/}"

check() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  py.test -vvv tests/
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}