blob: d563a924e300ca33ac50ef25e05a1748615b95cd (
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: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=python-confu
pkgver=1.8.0
pkgrel=2
pkgdesc="Configuration file validation and generation"
arch=('any')
url="https://github.com/20c/confu"
license=('Apache')
depends=('python')
makedepends=('python-poetry-core' 'python-build' 'python-installer')
checkdepends=('python-pytest' 'python-click')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('e981f0f48374c01f2ffbfc0c043000a0168a6fce023c7068e594bf95f1b3647b')
build() {
cd "confu-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "confu-$pkgver"
PYTHONPATH=./src pytest -x
}
package() {
cd "confu-$pkgver"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
}
|