aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-jsonpatch/APKBUILD
blob: 5a26ee59da83c3b0e6e5e4d05b3711a2a4366050 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py3-jsonpatch
_pkgname=jsonpatch
pkgver=1.26
pkgrel=0
pkgdesc="Apply JSON-Patches (RFC 6902)"
url="https://github.com/stefankoegl/python-json-patch"
arch="noarch"
license="BSD-3-Clause"
depends="py3-jsonpointer"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-jsonpatch" # Backwards compatibility
provides="py-jsonpatch=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="4ec622d25a53859111670453cd1461bc28d025cd768a06ebb39e4109508306cbf1838ce9343be9552a320fed71242103ceef7d6c4552d0df8fa15c48ab6b2e69  jsonpatch-1.26.tar.gz"