Files
MSYS2-packages/python-urllib3/PKGBUILD
2023-08-10 08:54:27 +02:00

32 lines
875 B
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=urllib3
pkgname="python-${_realname}"
pkgver=2.0.4
pkgrel=1
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
url='https://github.com/urllib3/urllib3'
license=('spdx:MIT')
arch=('any')
depends=("python")
makedepends=(
"python-hatchling"
"python-build"
"python-installer"
)
source=("${_realname}-${pkgver}.tar.gz::https://github.com/urllib3/urllib3/archive/${pkgver}.tar.gz")
sha256sums=('4d2e73912a2b7189c4232dc54723ce67c4ff5b47675d656f082a9b3e7e878c7e')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/python-${_realname}/LICENSE.txt
}