mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
36 lines
1.1 KiB
Bash
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.25
|
|
pkgrel=2
|
|
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=('5e1d5b6dcb6ee847ddd561400fe2d00e07aa1827a63ab98a38cd5e91fa0e52d8635eba1192edbccf9c7b9ce9c7ce0a414d580665c427c87a820e533d26092ad6')
|
|
|
|
build() {
|
|
cd "$srcdir"/python-json-patch-$pkgver
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir"/python-json-patch-$pkgver
|
|
coverage run --source=jsonpatch tests.py
|
|
}
|
|
|
|
package_python-jsonpatch() {
|
|
cd "$srcdir"/python-json-patch-$pkgver
|
|
|
|
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
|
python setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|