PKGBUILDs/community/python-jsonpatch/PKGBUILD
2021-04-30 00:28:55 +00:00

36 lines
1.1 KiB
Bash

# 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>
# - drop python-pypandoc makedepends
pkgname=python-jsonpatch
pkgver=1.31
pkgrel=1
pkgdesc="An implementation of the JSON Patch format"
arch=("any")
url="https://github.com/stefankoegl/python-json-patch"
license=("BSD")
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=('9f08014f311d18b97f0f0cfcc931f2615e0ba5079ff5994e9ba674e079be715c3c8de3ce1c1958235b34dcbe87dee09b103295655880273ce91652d2191704c0')
build() {
cd python-json-patch-$pkgver
python setup.py build
}
check() {
cd python-json-patch-$pkgver
coverage run --source=jsonpatch tests.py
}
package_python-jsonpatch() {
cd python-json-patch-$pkgver
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
python setup.py install --prefix=/usr --root="$pkgdir"
}