[packages/python3-hiredis] - new
qboosh
qboosh at pld-linux.org
Sun Feb 22 18:28:42 CET 2026
commit 233c4850838a65dc6685cb2731fc8abb21b0027a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 22 18:28:39 2026 +0100
- new
python3-hiredis.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/python3-hiredis.spec b/python3-hiredis.spec
new file mode 100644
index 0000000..4c82415
--- /dev/null
+++ b/python3-hiredis.spec
@@ -0,0 +1,63 @@
+# TODO: system hiredis instead of vendored?
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Python wrapper for hiredis
+Summary(pl.UTF-8): Pythonowy interfejs do biblioteki hiredis
+Name: python3-hiredis
+Version: 3.3.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/hiredis/
+Source0: https://files.pythonhosted.org/packages/source/h/hiredis/hiredis-%{version}.tar.gz
+# Source0-md5: 3dc0c18cedc67e6eb9027245157a29b3
+URL: https://pypi.org/project/hiredis/
+BuildRequires: python3-devel >= 1:3.8
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.8
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python extension that wraps protocol parsing code in hiredis. It
+primarily speeds up parsing of multi bulk replies.
+
+%description -l pl.UTF-8
+Rozszerzenie Ptyhona obudowujące kod analizy protokołu w hiredis.
+Przyspiesza głównie analizę seryjnych odpowiedzi.
+
+%prep
+%setup -q -n hiredis-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest -o pythonpath=$(readlink -f build-3/lib.*) tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%dir %{py3_sitedir}/hiredis
+%{py3_sitedir}/hiredis/hiredis.cpython-*.so
+%{py3_sitedir}/hiredis/*.py
+%{py3_sitedir}/hiredis/*.pyi
+%{py3_sitedir}/hiredis/py.typed
+%{py3_sitedir}/hiredis/__pycache__
+%{py3_sitedir}/hiredis-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-hiredis.git/commitdiff/233c4850838a65dc6685cb2731fc8abb21b0027a
More information about the pld-cvs-commit
mailing list