[packages/python3-httpx] - new
qboosh
qboosh at pld-linux.org
Wed Jan 14 21:38:57 CET 2026
commit e793c7478546ca5632e4d1b1963ac33563da8540
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jan 14 21:38:49 2026 +0100
- new
python3-httpx.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 88 insertions(+)
---
diff --git a/python3-httpx.spec b/python3-httpx.spec
new file mode 100644
index 0000000..a3813cc
--- /dev/null
+++ b/python3-httpx.spec
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (hanging? also disable for bootstrap: loop with uvicorn)
+
+Summary: The next generation HTTP client
+Summary(pl.UTF-8): Klient HTTP nowej generacji
+Name: python3-httpx
+Version: 0.28.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/httpx/
+Source0: https://files.pythonhosted.org/packages/source/h/httpx/httpx-%{version}.tar.gz
+# Source0-md5: 774cf32b9cd94a44189fbe5871026664
+URL: https://pypi.org/project/httpx/
+BuildRequires: python3-build
+BuildRequires: python3-hatch-fancy-pypi-readme
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires: python3-anyio
+BuildRequires: python3-brotli
+BuildRequires: python3-certifi
+BuildRequires: python3-click >= 8
+BuildRequires: python3-click < 9
+BuildRequires: python3-cryptography
+BuildRequires: python3-h2 >= 3
+BuildRequires: python3-h2 < 5
+BuildRequires: python3-httpcore >= 1
+BuildRequires: python3-httpcore < 2
+BuildRequires: python3-idna
+BuildRequires: python3-pygments >= 2
+BuildRequires: python3-pygments < 3
+BuildRequires: python3-pytest
+BuildRequires: python3-rich >= 10
+BuildRequires: python3-rich < 14
+BuildRequires: python3-sniffio
+BuildRequires: python3-socksio >= 1
+BuildRequires: python3-socksio < 2
+BuildRequires: python3-trio
+BuildRequires: python3-trustme
+BuildRequires: python3-uvicorn
+BuildRequires: python3-zstandard >= 0.18.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HTTPX is a fully featured HTTP client library for Python 3. It
+includes an integrated command line client, has support for both
+HTTP/1.1 and HTTP/2, and provides both sync and async APIs.
+
+%description -l pl.UTF-8
+HTTPX to w pełni funkcjonalna biblioteka klienta HTTP dla Pythona 3.
+Zawiera zintegrowanego klienta linii poleceń, obsługuje HTTP/1.1 oraz
+HTTP/2 i udostępnia API synchroniczne oraz asynchroniczne.
+
+%prep
+%setup -q -n httpx-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=anyio.pytest_plugin \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE.md README.md
+%attr(755,root,root) %{_bindir}/httpx
+%{py3_sitescriptdir}/httpx
+%{py3_sitescriptdir}/httpx-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-httpx.git/commitdiff/e793c7478546ca5632e4d1b1963ac33563da8540
More information about the pld-cvs-commit
mailing list