blob: ea71b8c929000e799d8d618e51b076d8c8322d73 (
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
|
# Maintainer: Rubin Simons <me@rubin55.org>
_pkgname=jsonpath-python
pkgname="python-${_pkgname}"
pkgver=1.1.6
pkgrel=1
pkgdesc="A more powerful JSONPath implementation in modern python"
arch=("any")
url="https://github.com/sean2077/${_pkgname}"
license=('MIT')
depends=("python")
makedepends=(
"python-build"
"python-installer"
"python-pytest"
"python-hatchling"
"uv"
)
source=("git+${url}.git#tag=${pkgver}")
sha256sums=('9e0ae4577526317249c34f7ed9ac27a710c4bdf927798e249bcba3e2ce6e9d04')
build() {
cd "${_pkgname}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pkgname}"
uv sync --extra dev
uv run python -m pytest
}
package() {
cd "${_pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|