[arch-commits] Commit in python-requests-credssp/repos (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Apr 23 02:35:57 UTC 2017
Date: Sunday, April 23, 2017 @ 02:35:56
Author: svenstaro
Revision: 224472
archrelease: copy trunk to community-any
Added:
python-requests-credssp/repos/community-any/
python-requests-credssp/repos/community-any/PKGBUILD
(from rev 224470, python-requests-credssp/trunk/PKGBUILD)
Deleted:
python-requests-credssp/repos/community-any/
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-requests-credssp/repos/community-any/PKGBUILD (from rev 224470, python-requests-credssp/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2017-04-23 02:35:56 UTC (rev 224472)
@@ -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='0.0.2'
+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://pypi.python.org/packages/76/64/c64dd2be7cc94f1fbf43c9396bac2cbe8448fe1b433b96d3c713b714839e/requests-credssp-${pkgver}.zip")
+sha512sums=('d69b597dde4823234852fc7de3aafbdfeb2213bff0ebe69b3b7bb3927830cb6d22db4d14062805d2ff1e953a59d436a9abf35f654bdcf898ce789c140d7dbf03')
+
+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-ordereddict' '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