[arch-commits] Commit in python-rapidjson/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Aug 10 08:44:55 UTC 2019
Date: Saturday, August 10, 2019 @ 08:44:54
Author: felixonmars
Revision: 498645
archrelease: copy trunk to community-testing-x86_64
Added:
python-rapidjson/repos/community-testing-x86_64/
python-rapidjson/repos/community-testing-x86_64/PKGBUILD
(from rev 498644, python-rapidjson/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-rapidjson/repos/community-testing-x86_64/PKGBUILD (from rev 498644, python-rapidjson/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-08-10 08:44:54 UTC (rev 498645)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-rapidjson
+pkgver=0.8.0
+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=('7d843cfe46a269c88a8f4c05ad6b3dc86d60fa3ceb24ac39639d95bbc8ed2bdba18f0467dd222c39416e48054b2ad70ae2b8219eb441a5571b872f28ba4872d7')
+
+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