PKGBUILDs/community/python-jsonpatch/PKGBUILD

37 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
2020-02-09 12:39:52 +00:00
pkgver=1.25
2020-03-16 20:18:31 +00:00
pkgrel=2
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")
2020-02-09 12:39:52 +00:00
sha512sums=('5e1d5b6dcb6ee847ddd561400fe2d00e07aa1827a63ab98a38cd5e91fa0e52d8635eba1192edbccf9c7b9ce9c7ce0a414d580665c427c87a820e533d26092ad6')
2016-02-26 13:40:30 +00:00
build() {
2017-06-19 18:54:05 +00:00
cd "$srcdir"/python-json-patch-$pkgver
2016-02-26 13:40:30 +00:00
python setup.py build
}
check() {
2017-06-19 18:54:05 +00:00
cd "$srcdir"/python-json-patch-$pkgver
2016-02-26 13:40:30 +00:00
coverage run --source=jsonpatch tests.py
}
package_python-jsonpatch() {
2017-06-19 18:54:05 +00:00
cd "$srcdir"/python-json-patch-$pkgver
2016-02-26 13:40:30 +00:00
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
python setup.py install --prefix=/usr --root="$pkgdir"
}