Christoph Reiter e8f4f9baa3 more CPEs
2024-03-26 09:46:25 +01:00

36 lines
944 B
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=urllib3
pkgname="python-${_realname}"
pkgver=2.0.7
pkgrel=1
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
url='https://github.com/urllib3/urllib3'
msys2_references=(
"pypi:urllib3"
"cpe: cpe:/a:python: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=('d223d2d5855680af96d74f376a35af63f8865908d66d32e742d4c83587dc22fb')
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
}