summaryrefslogtreecommitdiff
path: root/pkgbuilds/python-httpcore
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-07-21 14:37:27 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-07-21 14:37:27 -0700
commitc9c084ab449aa117680e7553b5ed042cfd07268d (patch)
treefc1fedc1228848116f605ad666734bb8c7b3a2bc /pkgbuilds/python-httpcore
parent2c70029d3d78dc8eddfdacb5404aea80400ebd37 (diff)
official python-httpcore has new version now
Diffstat (limited to 'pkgbuilds/python-httpcore')
-rw-r--r--pkgbuilds/python-httpcore/PKGBUILD51
1 files changed, 0 insertions, 51 deletions
diff --git a/pkgbuilds/python-httpcore/PKGBUILD b/pkgbuilds/python-httpcore/PKGBUILD
deleted file mode 100644
index cc3de3f..0000000
--- a/pkgbuilds/python-httpcore/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
-# Contributor: Eli Schwartz <eschwartz@archlinux.org>
-
-_pkgname=httpcore
-pkgname=python-httpcore
-# https://github.com/encode/httpcore/blob/master/CHANGELOG.md
-pkgver=0.17.3
-pkgrel=3
-pkgdesc="A minimal HTTP client"
-arch=('any')
-url="https://github.com/encode/${_pkgname}"
-license=('BSD')
-depends=('python' 'python-anyio' 'python-h11' 'python-sniffio' 'python-certifi')
-optdepends=(
- 'python-h2: for HTTP/2 support'
- 'python-socksio: for SOCKS support'
- 'python-trio: for trio backend'
-)
-makedepends=('python-setuptools' 'python-h2')
-checkdepends=('python-pytest-httpbin' 'python-pytest-trio' 'python-socksio')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha512sums=('41f48d32caa7d7a3456528404392a257927d047f0a1c733e2a68c0fec97c7454c7f8d7d1b6851c5722cfac292dfaa478a4033c656e66d389c81c72dee8e7a7d2')
-
-prepare() {
- cd ${_pkgname}-${pkgver}
-
- # disable -Werror, which often causes failures due to newer dependencies in Arch
- sed -i '/\berror\b/d' setup.cfg
-}
-
-build() {
- cd ${_pkgname}-${pkgver}
-
- python setup.py build
-}
-
-check() {
- cd ${_pkgname}-${pkgver}
-
- # raise open files limits, many tests will fail otherwise
- ulimit -S -n 4096
-
- python -m pytest
-}
-
-package() {
- cd ${_pkgname}-${pkgver}
-
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
-}