# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-signedjson
pkgver=1.1.0
pkgrel=0
pkgdesc="Sign JSON objects with ED25519 signatures"
url="https://github.com/matrix-org/python-signedjson"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-pynacl py3-canonicaljson py3-unpaddedbase64"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/python-signedjson/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-signedjson-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2b71793f7a524b1989e0d10840c69c3e51eb4ec4afe76968d00abb89331fbad1afc3cca0d608a7aa180575f1c15a7ca6e09dc0185213c08b66b21c7ff3e3d115  py3-signedjson-1.1.0.tar.gz"
