diff --git a/docs/packages/hiredis.yaml b/docs/packages/hiredis.yaml index 798e9be25ed..4b6eba5bd02 100644 --- a/docs/packages/hiredis.yaml +++ b/docs/packages/hiredis.yaml @@ -18,3 +18,4 @@ versions: - filename: hiredis-3.4.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl sha256: 206205ce4ba8496f6c0b083f0df3361d1946f067552ee300d17011fdaea5eafe requires-python: '>=3.8' +- version: 3.4.2 diff --git a/patches/hiredis/3.4.2/0001-add-the-vendored-hiredis-licence-next-to-the-package.patch b/patches/hiredis/3.4.2/0001-add-the-vendored-hiredis-licence-next-to-the-package.patch new file mode 100644 index 00000000000..47107805941 --- /dev/null +++ b/patches/hiredis/3.4.2/0001-add-the-vendored-hiredis-licence-next-to-the-package.patch @@ -0,0 +1,58 @@ +From 73c6977ad99373e411049acfb781b18d67a55c12 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Wed, 26 Aug 2026 21:11:29 +0200 +Subject: [PATCH] add the vendored hiredis licence next to the package's own + +Upstream-Status: To upstream [not yet submitted; the same gap exists in every hiredis wheel on PyPI, so this needs a maintainer discussion rather than a drive-by PR] + +setup.py compiles vendor/hiredis (hiredis v1.4.1, BSD 3-clause) straight +into the hiredis.hiredis extension, and that licence requires the +copyright notice to be reproduced with binary redistributions. The wheel +ships only the package's own MIT LICENSE: setuptools globs license files +from the project root, and vendor/hiredis/COPYING is not there. + +Add the vendored notice at the root as LICENSE.hiredis, which the default +LICEN[CS]E* glob picks up, so it lands in dist-info/licenses/ beside +LICENSE with no packaging change. + +Signed-off-by: Ludovic Henry +--- + LICENSE.hiredis | 29 +++++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + create mode 100644 LICENSE.hiredis + +diff --git a/LICENSE.hiredis b/LICENSE.hiredis +new file mode 100644 +index 0000000..a5fc973 +--- /dev/null ++++ b/LICENSE.hiredis +@@ -0,0 +1,29 @@ ++Copyright (c) 2009-2011, Salvatore Sanfilippo ++Copyright (c) 2010-2011, Pieter Noordhuis ++ ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ ++* Redistributions of source code must retain the above copyright notice, ++ this list of conditions and the following disclaimer. ++ ++* Redistributions in binary form must reproduce the above copyright notice, ++ this list of conditions and the following disclaimer in the documentation ++ and/or other materials provided with the distribution. ++ ++* Neither the name of Redis nor the names of its contributors may be used ++ to endorse or promote products derived from this software without specific ++ prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ++ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ++LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ++ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.