blob: 1666a2b47b0eca41f96d1bcaf5eb1be8a91be567 (
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
34
35
36
37
38
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-kiss-headers
_name=${pkgname#python-}
pkgver=2.4.3
pkgrel=2
pkgdesc="Python package for HTTP/1.1 style headers. Parse headers to objects."
arch=('any')
url="https://ousret.github.io/kiss-headers"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-hatchling' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-requests')
source=("${_name}-$pkgver.tar.gz::https://github.com/Ousret/kiss-headers/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('3496e6a697b2d2d052dda96f15bf02ed8d5244b722735b5da01febf93392bf30')
prepare() {
cd "${_name}-$pkgver"
# Skip coverage
sed -i '/addopts/d' pyproject.toml
}
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 -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|