aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ujson/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-ujson/APKBUILD')
-rw-r--r--community/py3-ujson/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/py3-ujson/APKBUILD b/community/py3-ujson/APKBUILD
new file mode 100644
index 0000000000..d19d72c5a5
--- /dev/null
+++ b/community/py3-ujson/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-ujson
+pkgver=4.0.2
+pkgrel=1
+pkgdesc="Fast Python JSON encoder and decoder"
+url="https://github.com/ultrajson/ultrajson"
+arch="all"
+license="BSD-3-Clause"
+makedepends="
+ py3-setuptools
+ py3-setuptools_scm
+ python3-dev
+ "
+checkdepends="
+ py3-pytest
+ py3-tz
+ "
+source="https://pypi.io/packages/source/u/ujson/ujson-$pkgver.tar.gz"
+builddir="$srcdir/ujson-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$(echo $PWD/build/lib.*)" python3 tests/test_ujson.py
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="ece12d4407cb7cdb647597ff7fc32e4390fc4c790c59e764da5c5644e5dec470c48cb6a6aaa18429cb713643e5205c5d26b2d2d2195bc90f3a171615d3dbd80d ujson-4.0.2.tar.gz"