[arch-commits] Commit in python-secretstorage/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 24 18:43:55 UTC 2016


    Date: Saturday, December 24, 2016 @ 18:43:54
  Author: foutrelis
Revision: 201768

archrelease: copy trunk to community-staging-any

Added:
  python-secretstorage/repos/community-staging-any/
  python-secretstorage/repos/community-staging-any/PKGBUILD
    (from rev 201767, python-secretstorage/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: python-secretstorage/repos/community-staging-any/PKGBUILD (from rev 201767, python-secretstorage/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 18:43:54 UTC (rev 201768)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+# Contributor: JonnyJD <arch at JonnyJD.net>
+
+pkgbase=python-secretstorage
+pkgname=(python-secretstorage python2-secretstorage)
+pkgver=2.3.1
+pkgrel=2
+pkgdesc="Securely store passwords and other private data using the SecretService DBus API"
+arch=('any')
+url="https://pypi.python.org/pypi/SecretStorage"
+license=('BSD')
+makedepends=('python-dbus' 'python2-dbus' 'python-crypto' 'python2-crypto' 'dbus-glib'
+             'python-cryptography' 'python2-cryptography')
+checkdepends=('gnome-keyring' 'xorg-server-xvfb' 'dbus-glib')
+source=("https://pypi.io/packages/source/S/SecretStorage/SecretStorage-${pkgver}.tar.gz")
+md5sums=('3b9465831b069e2622973afb7deb7bc2')
+
+prepare() {
+  cp -a SecretStorage-$pkgver{,-py2}
+}
+
+check() {
+  cd SecretStorage-$pkgver
+  dbus-launch xvfb-run -a python -m unittest discover -s tests || warning "Tests failed"
+
+  cd ../SecretStorage-$pkgver-py2
+  dbus-launch xvfb-run -a python2 -m unittest discover -s tests || warning "Tests failed"
+}
+
+package_python-secretstorage() {
+  depends=('python-dbus' 'python-crypto' 'dbus-glib' 'python-cryptography')
+
+  cd SecretStorage-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-secretstorage() {
+  depends=('python2-dbus' 'python2-crypto' 'dbus-glib' 'python2-cryptography')
+
+  cd SecretStorage-$pkgver-py2
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list