summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f3639fe6b3aac62ee9c2552ea1dc338c3c2b128 (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: Giovanni Harting <539@idlegandalf.com>

pkgname=python-preggy
_name=${pkgname#python-}
pkgver=1.4.4
pkgrel=2
pkgdesc='assertion library for Python'
arch=(any)
url='https://github.com/heynemann/preggy'
license=(MIT)
depends=(python python-six python-colorama python-unidecode)
makedepends=(python-build python-installer python-wheel python-setuptools)
checkdepends=(python-pytest)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
b2sums=('8d600e1c1e1e2948c31e7dbec907d87bd3590dfdecb22ee22a3f75ca65f22d50bc204fd0751327ac8ca22856d84f2ee7ddc1b42710f956e9c22b3e72d6047a65')

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

check() {
  cd $_name-$pkgver
  pytest
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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