Skip to content

Commit 232fa17

Browse files
authored
chore: add package python-httpx-ntlm (#4550)
1 parent 23d3bd2 commit 232fa17

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

packages/python-httpx-ntlm/PKGBUILD

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Originally from: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-httpx-ntlm
2+
3+
pkgname=python-httpx-ntlm
4+
_pkgname=httpx-ntlm
5+
pkgver=1.4.0
6+
pkgrel=1
7+
pkgdesc='NTLM authentication support for HTTPX.'
8+
arch=('any')
9+
url='https://github.com/ulodciv/httpx-ntlm'
10+
license=('ISC')
11+
depends=('python')
12+
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
13+
source=("$url/archive/refs/tags/$pkgver.tar.gz")
14+
sha512sums=('32d6705588de4142e7f357214733da6d4a3a5ba1dff83aec93bd584a12745308d11d15268e36361d6a9d3f1d8114acffa5f7cf44c27d91dcf03911ae03871b59')
15+
16+
# https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
17+
build() {
18+
cd "$_pkgname-$pkgver"
19+
python -m build --wheel --no-isolation
20+
}
21+
22+
package() {
23+
cd "$_pkgname-$pkgver"
24+
install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
25+
python -m installer --destdir="$pkgdir" dist/*.whl
26+
}

0 commit comments

Comments
 (0)