🔒 Repository is read-only – file editing is disabled.

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

41 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738394041
pkgname: 'python-requests'
pkgver: '2.34.2'
pkgrel: '2'
pkgdesc: 'Python HTTP for Humans'
url: 'https://pypi.python.org/pypi/requests'
arch: x86_64
depends: []
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