[arch-commits] Commit in (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Nov 18 08:13:09 UTC 2018


    Date: Sunday, November 18, 2018 @ 08:13:08
  Author: yan12125
Revision: 408655

addpkg: python-jsondiff 1.1.2-2

Added:
  python-jsondiff/
  python-jsondiff/repos/
  python-jsondiff/trunk/
  python-jsondiff/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: python-jsondiff/trunk/PKGBUILD
===================================================================
--- python-jsondiff/trunk/PKGBUILD	                        (rev 0)
+++ python-jsondiff/trunk/PKGBUILD	2018-11-18 08:13:08 UTC (rev 408655)
@@ -0,0 +1,31 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-jsondiff
+_pkgname=jsondiff
+pkgver=1.1.2
+pkgrel=2
+pkgdesc='Diff JSON and JSON-like structures in Python'
+arch=(any)
+url='https://github.com/ZoomerAnalytics/jsondiff'
+license=(MIT)
+depends=(python-setuptools)
+checkdepends=(python-nose python-nose-random)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ZoomerAnalytics/jsondiff/archive/$pkgver.tar.gz")
+sha256sums=('8e5edaa604c4a96d9ffe7fea6f39ec91bdddaee78fae7c6ff91cbb8e105b70c1')
+
+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
+}



More information about the arch-commits mailing list