[arch-commits] Commit in python-requests-kerberos/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 20:53:40 UTC 2019
Date: Saturday, October 26, 2019 @ 20:53:40
Author: foutrelis
Revision: 520656
archrelease: copy trunk to community-staging-any
Added:
python-requests-kerberos/repos/community-staging-any/
python-requests-kerberos/repos/community-staging-any/PKGBUILD
(from rev 520654, python-requests-kerberos/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-requests-kerberos/repos/community-staging-any/PKGBUILD (from rev 520654, python-requests-kerberos/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:53:40 UTC (rev 520656)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-requests-kerberos
+pkgname=('python-requests-kerberos' 'python2-requests-kerberos')
+pkgver=0.12.0
+pkgrel=3
+pkgdesc="A kerberos of useful classes and functions to be used with python-requests."
+arch=('any')
+url="https://github.com/requests/requests-kerberos"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
+ 'python-pykerberos' 'python2-pykerberos' 'python-cryptography' 'python2-cryptography')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/requests/requests-kerberos/archive/v$pkgver.tar.gz")
+sha512sums=('b925b5f9f6753e87368dce451927df09568d0d6126d4ae8514bbd99a794d983e32298b92b6239be9f95595483e2682259cf165c6997d17d9cea64a81d4af1a06')
+
+prepare() {
+ cp -a requests-kerberos-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/requests-kerberos-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/requests-kerberos-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/requests-kerberos-$pkgver
+ py.test
+
+ cd "$srcdir"/requests-kerberos-$pkgver-py2
+ py.test2
+}
+
+package_python-requests-kerberos() {
+ depends=('python-requests' 'python-pykerberos' 'python-cryptography')
+
+ cd "$srcdir"/requests-kerberos-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-requests-kerberos() {
+ depends=('python2-requests' 'python2-pykerberos' 'python2-cryptography')
+
+ cd "$srcdir"/requests-kerberos-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list