summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43499f1524fb352109a32c34f6b5a3b107794c59 (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>

pkgname=python-ubelt
_pkgname=ubelt
pkgver=1.3.4
pkgrel=1
pkgdesc="A Python utility belt containing simple tools"
arch=('any')
url="https://github.com/Erotemic/ubelt"
license=('Apache')
depends=(python python-blake3 python-colorama python-dateutil python-pygments python-xxhash)
optdepends=()
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest python-xdoctest)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('cedca60a5911943ae1dcc10e4547b70f79e179a096f08cf37d2fcfcd2671abd3')

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

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

check() {
  cd "$_pkgname-$pkgver"
  pytest ubelt
}

### vim:ts=2:sw=2:et: