summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b19530dcd91357dce1b04ab3fc6153150a890df (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
# Maintainer: Ben Westover <kwestover.kw@gmail.com>

pkgname=python-debianbts
pkgver=4.0.1
pkgrel=1
pkgdesc="Python library for querying Debian's Bug Tracking System"
arch=('any')
url="https://github.com/venthur/python-debianbts"
license=('MIT')
depends=('python' 'python-pysimplesoap')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-xdist')
source=("https://github.com/venthur/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('9cf0b78038e4135afb3b7a3cb9eb2d3ca76c74e8fd26756dda6c1e943cf77faa')

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

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

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