mirror of
https://github.com/aphrody-labs/MSYS2-packages.git
synced 2026-10-17 12:45:14 +00:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Contributor: Dirk Stolle
|
|
|
|
_realname=requests
|
|
pkgname=python-${_realname}
|
|
pkgver=2.34.2
|
|
pkgrel=1
|
|
pkgdesc='Python HTTP library for humans'
|
|
arch=('any')
|
|
url='https://requests.readthedocs.io/'
|
|
msys2_repository_url='https://github.com/psf/requests'
|
|
msys2_references=(
|
|
'cpe: cpe:/a:python:requests'
|
|
'cygwin: python-requests'
|
|
'purl: pkg:pypi/requests'
|
|
)
|
|
license=('spdx:Apache-2.0')
|
|
depends=(
|
|
'python'
|
|
'python-certifi'
|
|
'python-charset-normalizer'
|
|
'python-idna'
|
|
'python-urllib3'
|
|
)
|
|
makedepends=(
|
|
'python-build'
|
|
'python-installer'
|
|
'python-setuptools'
|
|
)
|
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed')
|
|
|
|
build() {
|
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "python-build-${MSYSTEM}"
|
|
|
|
python -m installer --prefix=${MSYSTEM_PREFIX} --destdir="${pkgdir}" dist/*.whl
|
|
|
|
install -Dm644 LICENSE "${pkgdir}${MSYSTEM_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
|
}
|