Date: Saturday, April 8, 2023 @ 08:57:35
Author: felixonmars
Revision: 1442262
archrelease: copy trunk to community-staging-any
Added:
python-jsondiff/repos/community-staging-any/
python-jsondiff/repos/community-staging-any/PKGBUILD
(from rev 1442261, python-jsondiff/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-jsondiff/repos/community-staging-any/PKGBUILD (from rev 1442261,
python-jsondiff/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 08:57:35 UTC (rev 1442262)
@@ -0,0 +1,32 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-jsondiff
+_pkgname=jsondiff
+pkgver=2.0.0
+pkgrel=3
+pkgdesc='Diff JSON and JSON-like structures in Python'
+arch=(any)
+url='https://github.com/xlwings/jsondiff'
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-nose python-nose-random)
+source=("https://github.com/xlwings/jsondiff/archive/$pkgver/jsondiff-$pkgver.tar.gz")
+sha256sums=('5cf3dfb212dcdc6ee104f40e30824a2f3ddaa05938d111ce0eea6646518b8339')
+
+build() {
+ cd $_pkgname-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+ nosetests -v tests
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}