[arch-commits] Commit in python-jsondiff/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 16:35:42 UTC 2019


    Date: Friday, October 25, 2019 @ 16:35:41
  Author: foutrelis
Revision: 519483

archrelease: copy trunk to community-staging-any

Added:
  python-jsondiff/repos/community-staging-any/
  python-jsondiff/repos/community-staging-any/PKGBUILD
    (from rev 519482, python-jsondiff/trunk/PKGBUILD)

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

Copied: python-jsondiff/repos/community-staging-any/PKGBUILD (from rev 519482, python-jsondiff/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:35:41 UTC (rev 519483)
@@ -0,0 +1,33 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-jsondiff
+_pkgname=jsondiff
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Diff JSON and JSON-like structures in Python'
+arch=(any)
+url='https://github.com/xlwings/jsondiff'
+license=(MIT)
+depends=(python python-setuptools)
+checkdepends=(python-nose python-nose-random)
+source=("https://github.com/xlwings/jsondiff/archive/v$pkgver/jsondiff-v$pkgver.tar.gz")
+sha256sums=('445b2d519c006e0ba10e1a71f596b7cb3f5d3c62849f3b9a6780b5e9653da92f')
+
+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
+  # FS#60911, https://github.com/xlwings/jsondiff/issues/24
+  rm "$pkgdir"/usr/bin/jsondiff
+}



More information about the arch-commits mailing list