From 269688e64fa77d377ff4dacd54e05d273db6c423 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sat, 10 Jan 2026 18:37:25 +0100 Subject: [PATCH] feat: Add python3-zstandard package for native build Native OpenWrt package for zstandard compression library. Can be used as alternative to pip installation. Co-Authored-By: Claude Opus 4.5 --- package/secubox/python3-zstandard/Makefile | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 package/secubox/python3-zstandard/Makefile diff --git a/package/secubox/python3-zstandard/Makefile b/package/secubox/python3-zstandard/Makefile new file mode 100644 index 00000000..a6bd908b --- /dev/null +++ b/package/secubox/python3-zstandard/Makefile @@ -0,0 +1,46 @@ +# +# Copyright (C) 2025 CyberMind.fr (SecuBox) +# +# This is free software, licensed under the MIT License. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python3-zstandard +PKG_VERSION:=0.23.0 +PKG_RELEASE:=1 + +PYPI_NAME:=zstandard +PKG_HASH:=b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09 + +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=CyberMind + +PKG_BUILD_DEPENDS:=python-cffi/host + +include $(TOPDIR)/feeds/packages/lang/python/pypi.mk +include $(INCLUDE_DIR)/package.mk +include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk + +define Package/python3-zstandard + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Zstandard compression bindings + URL:=https://github.com/indygreg/python-zstandard + DEPENDS:= \ + +python3-light \ + +python3-cffi \ + +libzstd +endef + +define Package/python3-zstandard/description + Python bindings to the Zstandard (zstd) compression library. + Provides both CFFI and C extension backends for optimal performance. + Required by mitmproxy for compressed content handling. +endef + +$(eval $(call Py3Package,python3-zstandard)) +$(eval $(call BuildPackage,python3-zstandard)) +$(eval $(call BuildPackage,python3-zstandard-src))