1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-canonicaljson/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

34 lines
922 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-canonicaljson
pkgver=1.6.4
pkgrel=1
pkgdesc="Canonical JSON"
url="https://github.com/matrix-org/python-canonicaljson"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-simplejson py3-frozendict"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-nose"
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/python-canonicaljson/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-canonicaljson-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
nosetests
}
package() {
python3 -m installer -d "$pkgdir" \
dist/canonicaljson-$pkgver-*.whl
}
sha512sums="
7be1300c17d51f917b1e81931f6d0dd681b1eef9b7f4e82ba3ae683609d74fd924eb3a832c8261611f556c190329748966bf15abe34bc1d22f2ecdf29372b560 py3-canonicaljson-1.6.4.tar.gz
"