[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jun 26 15:06:43 UTC 2018


    Date: Tuesday, June 26, 2018 @ 15:06:43
  Author: felixonmars
Revision: 346248

addpkg: python-rapidjson 0.6.2-1

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

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

Added: python-rapidjson/trunk/PKGBUILD
===================================================================
--- python-rapidjson/trunk/PKGBUILD	                        (rev 0)
+++ python-rapidjson/trunk/PKGBUILD	2018-06-26 15:06:43 UTC (rev 346248)
@@ -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"
+}


Property changes on: python-rapidjson/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list