Skip to content

Instantly share code, notes, and snippets.

@mdemierre
Created November 25, 2016 18:11
Show Gist options
  • Save mdemierre/ef22ac5309ff089da2949ad7cfef3cb7 to your computer and use it in GitHub Desktop.
Save mdemierre/ef22ac5309ff089da2949ad7cfef3cb7 to your computer and use it in GitHub Desktop.
PKGBUILD for python-requests-ntlm 0.3.0
pkgbase = python-requests-ntlm
pkgdesc = Allows for HTTP NTLM authentication using the requests library
pkgver = 0.3.0
pkgrel = 1
url = https://github.com/requests/requests-ntlm
arch = any
license = custom:ISC
makedepends = python-setuptools
makedepends = python2-setuptools
source = https://files.pythonhosted.org/packages/source/r/requests_ntlm/requests_ntlm-0.3.0.tar.gz
sha256sums = e1b3313989225055c53f3a62c893d87d3b30f7d66c86b1ade3f51da40817f280
pkgname = python-requests-ntlm
depends = python-requests
depends = python-ntlm3
pkgname = python2-requests-ntlm
depends = python2-requests
depends = python2-ntlm3
pkgbase=python-requests-ntlm
pkgname=('python-requests-ntlm' 'python2-requests-ntlm')
pkgver=0.3.0
pkgrel=1
pkgdesc="Allows for HTTP NTLM authentication using the requests library"
arch=('any')
url="https://github.com/requests/requests-ntlm"
license=('custom:ISC')
makedepends=('python-setuptools' 'python2-setuptools')
source=(https://files.pythonhosted.org/packages/source/r/requests_ntlm/requests_ntlm-$pkgver.tar.gz)
sha256sums=('e1b3313989225055c53f3a62c893d87d3b30f7d66c86b1ade3f51da40817f280')
build() {
cd "$srcdir"/requests_ntlm-$pkgver
python setup.py build
python2 setup.py build
}
package_python-requests-ntlm() {
depends=('python-requests' 'python-ntlm3')
cd "$srcdir"/requests_ntlm-$pkgver
python setup.py install --skip-build -O1 --root="$pkgdir"
install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-requests-ntlm() {
depends=('python2-requests' 'python2-ntlm3')
cd "$srcdir"/requests_ntlm-$pkgver
python2 setup.py install --skip-build -O1 --root="$pkgdir"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment