PKGBUILDs/extra/python-jsonpatch/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2016-02-26 13:40:30 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2020-03-16 20:18:31 +00:00
# - drop python-pypandoc makedepends
2016-02-26 13:40:30 +00:00
2020-03-16 20:18:31 +00:00
pkgname=python-jsonpatch
2023-06-19 15:09:11 +00:00
pkgver=1.33
2024-11-08 18:02:48 +00:00
pkgrel=3
2016-02-26 13:40:30 +00:00
pkgdesc="An implementation of the JSON Patch format"
arch=("any")
url="https://github.com/stefankoegl/python-json-patch"
license=("BSD")
2020-03-16 20:18:31 +00:00
depends=("python-jsonpointer")
makedepends=("python-setuptools")
source=("$pkgname-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz")
2023-06-19 15:09:11 +00:00
sha512sums=('0685f63949bee135b19d0962bdaab32ba97e02772b6650d885be57c09a2e89546222ebba1a4cf146b2f91027790b0a3ff2ea072d66dcebf9153aa601638bbfa2')
2016-02-26 13:40:30 +00:00
build() {
2020-12-02 19:31:29 +00:00
cd python-json-patch-$pkgver
2016-02-26 13:40:30 +00:00
python setup.py build
}
check() {
2020-12-02 19:31:29 +00:00
cd python-json-patch-$pkgver
2024-11-08 18:02:48 +00:00
PYTHONPATH=. python -m unittest discover -vs .
2016-02-26 13:40:30 +00:00
}
2023-06-19 15:09:11 +00:00
package() {
2020-12-02 19:31:29 +00:00
cd python-json-patch-$pkgver
2016-02-26 13:40:30 +00:00
python setup.py install --prefix=/usr --root="$pkgdir"
2023-06-19 15:09:11 +00:00
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
2016-02-26 13:40:30 +00:00
}