mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 23:42:07 +01:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# 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"
|