summaryrefslogtreecommitdiff
path: root/python-hat-json/PKGBUILD
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2023-12-29 21:45:08 +0100
committerbozo.kopic <bozo@kopic.xyz>2023-12-29 21:45:08 +0100
commitfd7675f4ee6a67db5f88da7ae7cf46b8fa5bedbc (patch)
tree71840aeb53c51ad30b5a7510f79b783684ef427a /python-hat-json/PKGBUILD
parentfa1dacca0175d555100221b20bf450b1d796456b (diff)
.
Diffstat (limited to 'python-hat-json/PKGBUILD')
-rw-r--r--python-hat-json/PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/python-hat-json/PKGBUILD b/python-hat-json/PKGBUILD
index 25366da..57066e3 100644
--- a/python-hat-json/PKGBUILD
+++ b/python-hat-json/PKGBUILD
@@ -2,7 +2,7 @@
_name=hat-json
pkgname=python-$_name
-pkgver=0.5.17
+pkgver=0.5.21
pkgrel=1
pkgdesc="Hat JSON library"
url="https://github.com/hat-open/hat-json"
@@ -10,17 +10,18 @@ license=('Apache')
arch=('any')
depends=('python-hat-util' 'python-jsonpatch' 'python-jsonschema'
'python-yaml' 'python-tomli' 'python-tomli-w')
-makedepends=('python-hat-doit' 'python-installer')
+makedepends=('python-build' 'python-hat-doit' 'python-installer')
source=("https://github.com/hat-open/hat-json/archive/refs/tags/v$pkgver.tar.gz")
-sha256sums=('a60dcbab21c7b42770a7ca9a9c6c6ba839a52556dc2480e9b85bd2b9a5a1128b')
+sha256sums=('9a416325b6bbef3d90d86193794e203373b2e365c209d51558430dd9c9164e7d')
build() {
cd "$srcdir/$_name-$pkgver"
- python -m doit
+ sed -i -e 's/"jsonschema ~=4.17.3"/"jsonschema >=4.17.3"/' pyproject.toml
+ python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
- python -m installer --destdir="$pkgdir" build/py/dist/*.whl
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}