package/python-iptables: bump to version 1.2.0

Drop patch which is no longer required.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
James Hilliard
2026-01-02 16:25:46 -07:00
committed by Julien Olivain
parent 79df2f2e57
commit 01cd953a3e
3 changed files with 6 additions and 46 deletions
@@ -1,40 +0,0 @@
From fd415a3613fad872062fb7cb4e271ac1476402ef Mon Sep 17 00:00:00 2001
From: Adam Duskett <adam.duskett@amarulasolutions.com>
Date: Tue, 24 Oct 2023 08:47:12 +0200
Subject: [PATCH] use sysconfig.get_path instead of get_python_lib
Distutils has been removed from python 3.12.0. Use sysconfig.get_path instead
of get_python_lib.
Upstream: https://github.com/ldx/python-iptables/pull/340
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
iptc/util.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/iptc/util.py b/iptc/util.py
index 04fe905..94befc5 100644
--- a/iptc/util.py
+++ b/iptc/util.py
@@ -3,7 +3,7 @@ import os
import sys
import ctypes
import ctypes.util
-from distutils.sysconfig import get_python_lib
+import sysconfig
from itertools import product
from subprocess import Popen, PIPE
from sys import version_info
@@ -64,7 +64,7 @@ def _do_find_library(name):
# probably we have been installed in a virtualenv
try:
- lib = ctypes.CDLL(os.path.join(get_python_lib(), name),
+ lib = ctypes.CDLL(os.path.join(sysconfig.get_path("purelib"), name),
mode=ctypes.RTLD_GLOBAL)
return lib
except:
--
2.41.0
+3 -4
View File
@@ -1,6 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/python-iptables/json
md5 bd6950c1ed9c6b48b7d552ff8e6766c5 python-iptables-1.0.1.tar.gz
sha256 1989f2b48598392c3574052a95f456985cb06fb4287b61bf8794e93ebc37eddb python-iptables-1.0.1.tar.gz
# Locally calculated
md5 b93381df79a3d6f61040f399cb2bd57c python_iptables-1.2.0.tar.gz
sha256 60f120d548f6d940f682f2c78851956018588936de05b9d5d338c3cb9bb47ca2 python_iptables-1.2.0.tar.gz
# Locally computed sha256 checksums
sha256 b827789c74144d9bb92595ed3bc568aef767a7e8d930fba61c2cdd9f6ec27599 NOTICE
+3 -2
View File
@@ -4,8 +4,9 @@
#
################################################################################
PYTHON_IPTABLES_VERSION = 1.0.1
PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/35/e4/33e639b9e153c2d798d73342a96715a4edca6f46431d763b275a34b3aeca
PYTHON_IPTABLES_VERSION = 1.2.0
PYTHON_IPTABLES_SOURCE = python_iptables-$(PYTHON_IPTABLES_VERSION).tar.gz
PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/55/3c/a2626b88fffb5bcebae80a2dca1e09ff539ab454a8e5fb2e50141943a1f8
PYTHON_IPTABLES_SETUP_TYPE = setuptools
PYTHON_IPTABLES_LICENSE = Apache-2.0
PYTHON_IPTABLES_LICENSE_FILES = NOTICE