summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4c2f79b2945242535a8a3389f0a8cedef926a3d (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
# Maintainer: Ben Westover <me@benthetechguy.net>

pkgname=python-debianbts
pkgver=4.1.1
pkgrel=3
pkgdesc="Python library for querying Debian's Bug Tracking System"
arch=('any')
url="https://github.com/venthur/python-debianbts"
license=('MIT')
depends=('python')
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=('208d77775a6aa522afe507e16784c10fc56342b7eb2f118cc0c04efde12c1041')

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
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}