[packages/python3-valkey] - new
qboosh
qboosh at pld-linux.org
Sun Feb 22 16:39:15 CET 2026
commit 3c9a1e6513f868b24649715700e416c1a94a6c48
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 22 16:39:11 2026 +0100
- new
python3-valkey.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
---
diff --git a/python3-valkey.spec b/python3-valkey.spec
new file mode 100644
index 0000000..5cec95f
--- /dev/null
+++ b/python3-valkey.spec
@@ -0,0 +1,65 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (require valkey server running)
+
+Summary: Python client for Valkey forked from redis-py
+Summary(pl.UTF-8): Pythonowy klient Valkey wywodzący się z redis-py
+Name: python3-valkey
+Version: 6.1.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/valkey/
+Source0: https://files.pythonhosted.org/packages/source/v/valkey/valkey-%{version}.tar.gz
+# Source0-md5: 1a0da117641cafc688a9ed4eb400ba6a
+URL: https://pypi.org/project/valkey/
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-setuptools
+%if %{with tests}
+%if "%{py3_ver}" < "3.11.3"
+BuildRequires: python3-async_timeout >= 4.0.3
+%endif
+BuildRequires: python3-cachetools
+BuildRequires: python3-packaging
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Python interface to the Valkey key-value store.
+
+%description -l pl.UTF-8
+Pythonowy interfejs do usługi przechowywania danych klucz-wartość
+Valkey.
+
+%prep
+%setup -q -n valkey-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+# ssl tests expect SSL certs in ../dockers/stunnel/keys dir
+# tests/test_asyncio/test_cluster.py and tests/test_ssl.py require them during load
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_asyncio.plugin \
+%{__python3} -m pytest tests -m 'not ssl' --ignore tests/test_asyncio/test_cluster.py --ignore tests/test_ssl.py
+%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
+%{py3_sitescriptdir}/valkey
+%{py3_sitescriptdir}/valkey-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-valkey.git/commitdiff/3c9a1e6513f868b24649715700e416c1a94a6c48
More information about the pld-cvs-commit
mailing list