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
|
2021-05-04 13:58:33 +00:00
|
|
|
pkgver=1.32
|
2021-12-13 00:24:25 +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")
|
|
|
|
checkdepends=('python-coverage')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz")
|
2021-05-04 13:58:33 +00:00
|
|
|
sha512sums=('4e2978555dd506e09553014d426c4e3a6c6d5c865428f11450952704007c8a0b2060b945cf1fa33a128151427e1c66919891466e095e96fff4316304f0b3ad1d')
|
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
|
2016-02-26 13:40:30 +00:00
|
|
|
coverage run --source=jsonpatch tests.py
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python-jsonpatch() {
|
2020-12-02 19:31:29 +00:00
|
|
|
cd python-json-patch-$pkgver
|
2016-02-26 13:40:30 +00:00
|
|
|
|
2020-12-02 19:31:29 +00:00
|
|
|
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
2016-02-26 13:40:30 +00:00
|
|
|
python setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
}
|