blob: 6a7bc9ddb2080a4ac6f214e5a8ddaa220091fe48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-ujson
_pkgname=ujson
pkgver=1.35
pkgrel=4
pkgdesc="A fast Python JSON encoder and decoder"
url="https://github.com/esnme/ultrajson"
arch="all"
license="BSD-3-Clause"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-tz py3-six"
source="$_pkgname-$pkgver.tar.gz::https://github.com/esnme/ultrajson/archive/v$pkgver.tar.gz
added-static-to-C-functions-where-possible.patch
lower-stack-usage.patch
"
builddir="$srcdir"/ultrajson-$pkgver
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
check() {
ln -s ./build/lib.*/ujson.*.so ujson.so
PYTHONPATH=. python3 tests/tests.py
}
sha512sums="cd5dc8d08e072cf703aec7d689070713f7073c22f13167d7e10a89219179248d6668894c1d742ca658672bb82e1dccbf72e3fd69e036d8cb2ee0ee799d10db11 ujson-1.35.tar.gz
55d958c833f62eb5e50829aced94bf23ebda50b4e88970b7cc6d476e4a911d8738472c9d414c095186867f3cfd2731e211d04adb3d7053eac7d8d7cf208c1eeb added-static-to-C-functions-where-possible.patch
e3755dea5845d735afc32c3fc6ee569f1a36d51203812409446c3cb62d207c1fea934935adaf1787b5ac549765e2dfdd18790f2eb0c15b28c5fec61a45874738 lower-stack-usage.patch"
|