community/python-jsonpatch to 1.27-1

This commit is contained in:
Kevin Mihelich 2020-12-02 19:31:29 +00:00
parent fbad7d356d
commit e8449440f3

View file

@ -6,7 +6,7 @@
# - drop python-pypandoc makedepends
pkgname=python-jsonpatch
pkgver=1.26
pkgver=1.27
pkgrel=1
pkgdesc="An implementation of the JSON Patch format"
arch=("any")
@ -16,21 +16,21 @@ 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")
sha512sums=('1ab25c8e091cd0b772062a8c448fee4772081d8bd715489b2f7a76e4c0bdff8b26dd38b26c3037cf9bdf8780b97e62a20b6a5bdc43f43af16fdae51d1291bf52')
sha512sums=('297ca02d114e6b199bd516f69dca147fbe309f0a1b031046859271720645322607236f97b489c242575f7e1ad3cab0c68b1b7f11894c5af82be24013e376c0a4')
build() {
cd "$srcdir"/python-json-patch-$pkgver
cd python-json-patch-$pkgver
python setup.py build
}
check() {
cd "$srcdir"/python-json-patch-$pkgver
cd python-json-patch-$pkgver
coverage run --source=jsonpatch tests.py
}
package_python-jsonpatch() {
cd "$srcdir"/python-json-patch-$pkgver
cd python-json-patch-$pkgver
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
python setup.py install --prefix=/usr --root="$pkgdir"
}