[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Sat Nov 15 03:17:29 UTC 2014


    Date: Saturday, November 15, 2014 @ 04:17:29
  Author: fyan
Revision: 122586

addpkg: python-requests-oauthlib 0.4.2-1

Added:
  python-requests-oauthlib/
  python-requests-oauthlib/repos/
  python-requests-oauthlib/trunk/
  python-requests-oauthlib/trunk/PKGBUILD

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

Added: python-requests-oauthlib/trunk/PKGBUILD
===================================================================
--- python-requests-oauthlib/trunk/PKGBUILD	                        (rev 0)
+++ python-requests-oauthlib/trunk/PKGBUILD	2014-11-15 03:17:29 UTC (rev 122586)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 122344 2014-11-11 08:16:49Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sebastien Leduc <sebastien at sleduc.fr>
+# Contributor: Roberto Catini <roberto.catini at gmail.com>
+
+pkgbase=python-requests-oauthlib
+pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
+_pkgname=requests-oauthlib
+pkgver=0.4.2
+pkgrel=1
+pkgdesc="First-class OAuth library support for Requests"
+arch=('any')
+url="https://pypi.python.org/pypi/requests-oauthlib"
+license=('custom:ISC')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'python-oauthlib' 'python2-oauthlib')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
+source=("https://pypi.python.org/packages/source/r/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('df930abe3971fb418c67a8545de54661')
+
+prepare() {
+  cp -a ${_pkgname}-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/${_pkgname}-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/${_pkgname}-$pkgver"
+  py.test
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  py.test2
+}
+
+package_python-requests-oauthlib() {
+  depends=('python-requests' 'python-oauthlib')
+
+  cd "$srcdir/${_pkgname}-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-requests-oauthlib() {
+  depends=('python2-requests' 'python2-oauthlib')
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list