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

Felix Yan felixonmars at archlinux.org
Tue Jun 26 15:07:31 UTC 2018


    Date: Tuesday, June 26, 2018 @ 15:07:31
  Author: felixonmars
Revision: 346249

archrelease: copy trunk to community-x86_64

Added:
  python-rapidjson/repos/community-x86_64/
  python-rapidjson/repos/community-x86_64/PKGBUILD
    (from rev 346248, python-rapidjson/trunk/PKGBUILD)

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

Copied: python-rapidjson/repos/community-x86_64/PKGBUILD (from rev 346248, python-rapidjson/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-06-26 15:07:31 UTC (rev 346249)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-rapidjson
+pkgver=0.6.2
+pkgrel=1
+pkgdesc="Python wrapper around rapidjson"
+arch=('x86_64')
+url="https://pypi.python.org/pypi/python-rapidjson"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'rapidjson')
+checkdepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-pytz')
+source=("https://pypi.io/packages/source/p/python-rapidjson/python-rapidjson-$pkgver.tar.gz")
+sha512sums=('a45e49d6a9b6d677c2b31a75366c2c98e4cd5321e81ff87ae2e428cd9df9a545bfdf3285f73e82c4cc3faf2b5ace79ba8f1b9d05e45558cfbadd41ddc79e5364')
+
+prepare() {
+  #rm -r python-rapidjson-$pkgver/rapidjson
+  #sed -i 's/if not os.path.isdir/if os.path.isdir/' python-rapidjson-$pkgver/setup.py
+  # Shared rapidjson fails tests.
+
+  cp -a python-rapidjson-$pkgver{,-py2}
+}
+
+build() {
+  cd python-rapidjson-$pkgver
+  python setup.py build # --rj-include-dir=/usr/include
+}
+
+check() {
+  cd python-rapidjson-$pkgver
+  python setup.py pytest --addopts '--ignore benchmarks/'
+}
+
+package() {
+  cd python-rapidjson-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list