python-intelhex: Update to 2.3.0
authorJeffery To <redacted>
Mon, 7 Aug 2023 06:32:26 +0000 (14:32 +0800)
committerTianling Shen <redacted>
Sun, 13 Aug 2023 02:54:38 +0000 (10:54 +0800)
This version includes the fix from the removed patch.

Signed-off-by: Jeffery To <redacted>
lang/python/python-intelhex/Makefile
lang/python/python-intelhex/patches/001-Fix-Python-3.9-compatibility-issue-with-array-module.patch [deleted file]

index 8e0abd739102ee718253716a5effc9f10263a792..19fc2ac06948102f726343b605cfe6b4752d2160 100644 (file)
@@ -5,12 +5,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-intelhex
-PKG_VERSION:=2.2.1
-PKG_RELEASE:=4
+PKG_VERSION:=2.3.0
+PKG_RELEASE:=1
 
-PYPI_NAME:=IntelHex
-PYPI_SOURCE_NAME:=intelhex
-PKG_HASH:=009d8511e0d50639230c39af9607deee771cf026f67ef7507a8c3fd4fa927832
+PYPI_NAME:=intelhex
+PKG_HASH:=892b7361a719f4945237da8ccf754e9513db32f5628852785aea108dcd250093
 
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 PKG_LICENSE:=BSD-3-Clause
@@ -24,8 +23,8 @@ define Package/python3-intelhex
   SECTION:=lang
   CATEGORY:=Languages
   SUBMENU:=Python
-  TITLE:=python3-intelhex
-  URL:=https://github.com/bialix/intelhex
+  TITLE:=Intel HEX files manipulations
+  URL:=https://github.com/python-intelhex/intelhex
   DEPENDS:=+python3-light
 endef
 
diff --git a/lang/python/python-intelhex/patches/001-Fix-Python-3.9-compatibility-issue-with-array-module.patch b/lang/python/python-intelhex/patches/001-Fix-Python-3.9-compatibility-issue-with-array-module.patch
deleted file mode 100644 (file)
index dae6c8b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-From 4125dce5b174401d38cc0fcf9d2e1aad07997f5e Mon Sep 17 00:00:00 2001
-From: fernandez85 <fernandez2005@gmail.com>
-Date: Sun, 11 Oct 2020 12:39:06 +0200
-Subject: [PATCH] Fix Python 3.9 compatibility issue with 'array' module
-
----
- intelhex/compat.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/intelhex/compat.py
-+++ b/intelhex/compat.py
-@@ -57,7 +57,8 @@ if sys.version_info[0] >= 3:
-             return s
-         return s.decode('latin1')
--    array_tobytes = getattr(array.array, "tobytes", array.array.tostring)
-+    # for python >= 3.2 use 'tobytes', otherwise 'tostring'
-+    array_tobytes = array.array.tobytes if sys.version_info[1] >= 2 else array.array.tostring
-     IntTypes = (int,)
-     StrType = str
git clone https://git.99rst.org/PROJECT