[arch-commits] Commit in python-stem/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Nov 15 22:51:05 UTC 2018


    Date: Thursday, November 15, 2018 @ 22:51:04
  Author: anthraxx
Revision: 407787

archrelease: copy trunk to community-any

Added:
  python-stem/repos/community-any/
  python-stem/repos/community-any/PKGBUILD
    (from rev 407786, python-stem/trunk/PKGBUILD)

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

Copied: python-stem/repos/community-any/PKGBUILD (from rev 407786, python-stem/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-11-15 22:51:04 UTC (rev 407787)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Spider.007 <archlinux AT spider007 DOT net>
+
+pkgname=python-stem
+_pypiname=${pkgname#*-}
+pkgver=1.7.0
+pkgrel=2
+pkgdesc='Python controller library for Tor'
+url='https://stem.torproject.org/'
+arch=('any')
+license=('LGPL3')
+depends=('python' 'python-cryptography' 'python-pynacl' 'procps-ng')
+checkdepends=('tor' 'python-mock')
+optdepends=('tor: tor-server to talk to')
+replaces=('stem')
+provides=('stem')
+source=(https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz{,.asc})
+sha256sums=('1b61363c32f50804a377d472761e26abed56dd9017aba43614dd4a151d7d91ab'
+            'SKIP')
+validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1 at gmail.com>
+
+prepare() {
+  cd ${_pypiname}-${pkgver}
+  # remove flaky integration tests
+  sed -i test/settings.cfg \
+    -e '/|test.integ.client.connection.TestConnection/d' \
+    -e '/|test.integ.process.TestProcess/d' \
+    -e '/|test.integ.installation.TestInstallation/d'
+  rm test/integ/{client/connection,{installation,process}}.py
+}
+
+build() {
+  cd ${_pypiname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pypiname}-${pkgver}
+  ./run_tests.py --all
+}
+
+package() {
+  cd ${_pypiname}-${pkgver}
+  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list