# Maintainer: Felix Yan # Contributor: Daniel Wallace # Contributor: Limao Luo # ALARM: Kevin Mihelich # - drop python-pypandoc makedepends pkgname=python-jsonpatch pkgver=1.33 pkgrel=3 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") source=("$pkgname-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz") sha512sums=('0685f63949bee135b19d0962bdaab32ba97e02772b6650d885be57c09a2e89546222ebba1a4cf146b2f91027790b0a3ff2ea072d66dcebf9153aa601638bbfa2') build() { cd python-json-patch-$pkgver python setup.py build } check() { cd python-json-patch-$pkgver PYTHONPATH=. python -m unittest discover -vs . } package() { cd python-json-patch-$pkgver python setup.py install --prefix=/usr --root="$pkgdir" install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }