summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-02-20 10:51:57 +0800
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-11-02 01:14:01 +0100
commit36b997a1132197616f4dc33ae7c5c08adb086132 (patch)
tree916f27cac920d9e579ad57a76f948ddd85853bdb
parentfaaf36ed35f3f45d8e2aa54adea226d889f2fb7e (diff)
python-twisted: Update to 22.10.0
Includes fix for CVE-2022-39348 (NameVirtualHost Host header injection). This adds a build dependency that will be required for pyproject.toml-based builds. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 56b10770fc0741c79b697e9954b27090a4560a9a)
-rw-r--r--lang/python/python-twisted/Makefile11
-rw-r--r--lang/python/python-twisted/patches/001-omit-tkconch.patch2
-rw-r--r--lang/python/python-twisted/patches/002-omit-tests.patch4
3 files changed, 10 insertions, 7 deletions
diff --git a/lang/python/python-twisted/Makefile b/lang/python/python-twisted/Makefile
index 8c78b0284..1b54cb0c4 100644
--- a/lang/python/python-twisted/Makefile
+++ b/lang/python/python-twisted/Makefile
@@ -1,5 +1,6 @@
#
-# Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+# Copyright (C) 2015-2016, 2018-2023 Jeffery To
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -8,11 +9,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-twisted
-PKG_VERSION:=22.4.0
+PKG_VERSION:=22.10.0
PKG_RELEASE:=1
PYPI_NAME:=Twisted
-PKG_HASH:=a047990f57dfae1e0bd2b7df2526d4f16dcdc843774dc108b78c52f2a5f13680
+PKG_HASH:=32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31
PKG_BUILD_DEPENDS:=libtirpc
@@ -21,6 +22,8 @@ PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
+PKG_BUILD_DEPENDS:=python-incremental/host
+
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
@@ -39,9 +42,9 @@ define Package/python3-twisted
+python3-bcrypt \
+python3-constantly \
+python3-cryptography \
+ +python3-hyperlink \
+python3-idna \
+python3-incremental \
- +python3-hyperlink \
+python3-pkg-resources \
+python3-pyasn1 \
+python3-pyopenssl \
diff --git a/lang/python/python-twisted/patches/001-omit-tkconch.patch b/lang/python/python-twisted/patches/001-omit-tkconch.patch
index 2a913ece9..a1a37771b 100644
--- a/lang/python/python-twisted/patches/001-omit-tkconch.patch
+++ b/lang/python/python-twisted/patches/001-omit-tkconch.patch
@@ -1,6 +1,6 @@
--- a/setup.cfg
+++ b/setup.cfg
-@@ -112,7 +112,6 @@ console_scripts =
+@@ -115,7 +115,6 @@ console_scripts =
conch = twisted.conch.scripts.conch:run
mailmail = twisted.mail.scripts.mailmail:run
pyhtmlizer = twisted.scripts.htmlizer:run
diff --git a/lang/python/python-twisted/patches/002-omit-tests.patch b/lang/python/python-twisted/patches/002-omit-tests.patch
index 08507c390..3ec59fd48 100644
--- a/lang/python/python-twisted/patches/002-omit-tests.patch
+++ b/lang/python/python-twisted/patches/002-omit-tests.patch
@@ -1,6 +1,6 @@
--- a/setup.cfg
+++ b/setup.cfg
-@@ -104,6 +104,9 @@ mypy =
+@@ -107,6 +107,9 @@ mypy =
[options.packages.find]
where = src
@@ -10,7 +10,7 @@
[options.entry_points]
console_scripts =
-@@ -123,6 +126,7 @@ console_scripts =
+@@ -126,6 +129,7 @@ console_scripts =
*.pxi
*.pyx
build.bat