# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-secretstorage
_pkgname=SecretStorage
pkgver=3.3.3
pkgrel=3
pkgdesc="Python bindings to Freedesktop.org Secret Service API"
url="https://github.com/mitya57/secretstorage"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography py3-jeepney"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source=" https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	# can't run gnome keyring during build, so at least check importing
	PYTHONPATH=build/lib python3 -c "import secretstorage"
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
9a048c8245cfb01babebdd85dbbe84f9634b9b28188f7d11d3abad841109cfa307861de05e529199e409e595864ff3e097fcc961fcff210040d214a50f932f6e  SecretStorage-3.3.3.tar.gz
"
