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

Felix Yan fyan at archlinux.org
Sat Sep 19 14:17:55 UTC 2015


    Date: Saturday, September 19, 2015 @ 16:17:54
  Author: fyan
Revision: 140868

archrelease: copy trunk to community-staging-any

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

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

Copied: python-sure/repos/community-staging-any/PKGBUILD (from rev 140867, python-sure/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 14:17:54 UTC (rev 140868)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-sure
+pkgname=("python-sure" "python2-sure")
+pkgver=1.2.24
+pkgrel=2
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="http://github.com/gabrielfalcao/sure"
+license=('GPL')
+makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.python.org/packages/source/s/sure/sure-$pkgver.tar.gz")
+sha512sums=('875d2cb220d8915737909df372bedc2266c5c948c6f5ea23f3de5ee57b0f1179d2a0ae3455228d71a4f0f4279c098bb4c142a862b55462d67fd425c0def49a8b')
+
+prepare() {
+  cp -a "sure-$pkgver"{,-py2}
+}
+
+package_python-sure() {
+  depends=('python-six' 'python-mock')
+
+  cd sure-$pkgver
+  LC_CTYPE=en_US.UTF-8 python3 setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-sure() {
+  depends=('python2-six' 'python2-mock')
+
+  cd sure-$pkgver-py2
+  LC_CTYPE=en_US.UTF-8 python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+



More information about the arch-commits mailing list