1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-simplejson/APKBUILD

34 lines
1,019 B
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-simplejson
_pkgname=simplejson
pkgver=3.17.3
pkgrel=0
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
url="https://pypi.python.org/pypi/simplejson"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools python3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
provides="py-simplejson=$pkgver-r$pkgrel" # backwards compatibility
replaces="py-simplejson" # backwards compatiblity
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
rm -Rf "$subpkgdir"/usr/lib/python*/site-packages/simplejson/tests/
}
sha512sums="
eb8bae7cb14b9f3cdcc0fe8ce7fc9edde09099c054d6335d0afc26cfaa16657d580b095fd8879bb48856be82050824015e9636942dafe95c888ee2db43adfb97 py3-simplejson-3.17.3.tar.gz
"