archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-secretstorage / repos / community-any / PKGBUILD
blob4c2578285799f3e2da49e1eddd0cb4dddef2cd08
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 # Contributor: Patrice Peterson <runiq at archlinux dot us>
4 # Contributor: JonnyJD <arch@JonnyJD.net>
6 pkgname=python-secretstorage
7 _pkgname=SecretStorage
8 pkgver=3.3.3
9 pkgrel=2
10 pkgdesc="Securely store passwords and other private data using the SecretService DBus API"
11 arch=('any')
12 url="https://github.com/mitya57/secretstorage"
13 license=('BSD')
14 depends=('python-cryptography' 'python-jeepney')
15 makedepends=('python-setuptools')
16 checkdepends=('org.freedesktop.secrets' 'xorg-server-xvfb')
17 source=("https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
18 sha512sums=('9a048c8245cfb01babebdd85dbbe84f9634b9b28188f7d11d3abad841109cfa307861de05e529199e409e595864ff3e097fcc961fcff210040d214a50f932f6e')
20 build() {
21   cd $_pkgname-$pkgver
23   python setup.py build
26 check() {
27   cd $_pkgname-$pkgver
29   dbus-launch xvfb-run -a python -m unittest discover -s tests || echo "Tests failed"
32 package() {
33   cd $_pkgname-$pkgver
35   python setup.py install --root="$pkgdir" -O1
36   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE