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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 12:58:01 UTC 2018


    Date: Sunday, July 8, 2018 @ 12:58:01
  Author: felixonmars
Revision: 354859

archrelease: copy trunk to community-staging-any

Added:
  python-requests-credssp/repos/community-staging-any/
  python-requests-credssp/repos/community-staging-any/PKGBUILD
    (from rev 354858, python-requests-credssp/trunk/PKGBUILD)

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

Copied: python-requests-credssp/repos/community-staging-any/PKGBUILD (from rev 354858, python-requests-credssp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 12:58:01 UTC (rev 354859)
@@ -0,0 +1,39 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Christoph W <c w e g e n e r at gmail dot com>
+
+pkgbase=('python-requests-credssp')
+pkgname=('python-requests-credssp' 'python2-requests-credssp')
+_module='requests-credssp'
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="HTTPS CredSSP authentication with the requests library"
+url="https://github.com/jborean93/requests-credssp"
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('ISC')
+arch=('any')
+source=("https://github.com/jborean93/requests-credssp/archive/v${pkgver}.tar.gz")
+sha512sums=('2918785f2225a32e1777cc81e7ad2d069151e0507766ba0db8ca9e92f67fe4e586f808adb7e0378d1d623e3b3298d1d34b20ef5d7e785bd05a44347bac4c548f')
+
+prepare() {
+    cp -a "${srcdir}/${_module}-${pkgver}"{,-python2}
+}
+
+build() {
+    cd "${srcdir}/${_module}-${pkgver}"
+    python setup.py build
+
+    cd "${srcdir}/${_module}-${pkgver}-python2"
+    python2 setup.py build
+}
+
+package_python-requests-credssp() {
+    depends+=('python' 'python-pyopenssl' 'python-requests' 'python-ntlm-auth')
+    cd "${srcdir}/${_module}-${pkgver}"
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-requests-credssp() {
+    depends+=('python2' 'python2-pyopenssl' 'python2-requests' 'python2-ordereddict' 'python2-ntlm-auth')
+    cd "${srcdir}/${_module}-${pkgver}-python2"
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list