PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/python-requests/PAGBUILD.yaml main

46 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
pkgname: 'python-requests'
pkgver: '2.34.2'
pkgrel: '4'
pkgdesc: 'Python HTTP for Humans'
url: 'https://pypi.python.org/pypi/requests'
arch: x86_64
depends:
- python
- python-urllib3
- python-certifi
- python-idna
- python-charset-normalizer
makedepends:
- 'python-urllib3'
- 'python-chardet'
- 'python-certifi'
- 'python-idna'
- 'python-charset-normalizer'

source:
- 'https://files.pythonhosted.org/packages/source/r/requests/requests-${pkgver}.tar.gz'
- 'requests-use_system_certs-2.patch'

sha256sums:
- SKIP
- SKIP

build: |
  cd requests-${pkgver}

  patch -Np1 -i ../requests-use_system_certs-2.patch

   pip3 wheel -w dist \
     --no-build-isolation \
     --no-deps $PWD
   pip3 install --no-index \
     --find-links dist \
     --no-cache-dir    \
     --no-user         \
     --root=${PKGDIR}       \
     requests

  find ${PKGDIR} -type d -name vendor -o -name tests |xargs rm -rf 

package: |
  true