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

Felix Yan felixonmars at archlinux.org
Mon Jul 23 15:26:00 UTC 2018


    Date: Monday, July 23, 2018 @ 15:26:00
  Author: felixonmars
Revision: 363008

archrelease: copy trunk to community-staging-any

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

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

Copied: python-irc/repos/community-staging-any/PKGBUILD (from rev 363007, python-irc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 15:26:00 UTC (rev 363008)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Pierre Chapuis <catwell at archlinux.us>
+# Contributor: Stefano Esposito <ragnarok at email.it>
+
+pkgbase=python-irc
+pkgname=('python-irc' 'python2-irc')
+pkgver=16.1
+pkgrel=2
+pkgdesc="IRC (Internet Relay Chat) protocol client library for Python"
+depends=('python-six' 'python-pytz' 'python-more-itertools' 'python-jaraco' 'python-tempora')
+makedepends=('python-setuptools' 'python2-setuptools'
+    'python2-jaraco' 'python2-more-itertools' 'python2-pytz' 'python2-tempora')
+checkdepends=('python-pytest' 'python2-pytest')
+arch=('any')
+url="http://pypi.python.org/pypi/irc"
+license=('LGPL')
+source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz")
+md5sums=('942667800e1fcc46bc46b7f62b12068f')
+
+build() {
+  cd "$srcdir"
+  cp -a "irc-$pkgver" "irc2-$pkgver"
+}
+
+package_python-irc() {
+  cd "$srcdir/irc-$pkgver"
+  export LC_ALL=en_US.UTF-8
+  python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+package_python2-irc() {
+  depends=('python2-six' 'python2-pytz' 'python2-more-itertools' 'python2-jaraco' 'python2-tempora')
+
+  cd "$srcdir/irc2-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+}
+
+check() {
+  return  # dude broke pytest?
+  cd "$srcdir/irc-$pkgver"
+  export LC_ALL=en_US.UTF-8
+  python3 setup.py test 
+
+  cd "$srcdir/irc2-$pkgver"
+  python2 setup.py test 
+}



More information about the arch-commits mailing list