[arch-commits] Commit in python-jsonpatch/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 17:00:29 UTC 2020
Date: Monday, November 9, 2020 @ 17:00:28
Author: felixonmars
Revision: 747748
archrelease: copy trunk to community-staging-any
Added:
python-jsonpatch/repos/community-staging-any/
python-jsonpatch/repos/community-staging-any/PKGBUILD
(from rev 747747, python-jsonpatch/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-jsonpatch/repos/community-staging-any/PKGBUILD (from rev 747747, python-jsonpatch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 17:00:28 UTC (rev 747748)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgname=python-jsonpatch
+pkgver=1.26
+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" "python-pypandoc")
+checkdepends=('python-coverage')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/stefankoegl/python-json-patch/archive/v$pkgver.tar.gz")
+sha512sums=('1ab25c8e091cd0b772062a8c448fee4772081d8bd715489b2f7a76e4c0bdff8b26dd38b26c3037cf9bdf8780b97e62a20b6a5bdc43f43af16fdae51d1291bf52')
+
+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"
+}
More information about the arch-commits
mailing list