From b295a38c4b160ccf1c95f7974f0ffe5b28cf1dc8 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 8 Nov 2023 15:09:18 +0100 Subject: [PATCH] python3-pwntools: update to 4.11.0. --- .../do-not-check-build-python-header.patch | 18 ------------------ srcpkgs/python3-pwntools/patches/py3.12.patch | 11 +++++++++++ srcpkgs/python3-pwntools/template | 8 ++++---- 3 files changed, 15 insertions(+), 22 deletions(-) delete mode 100644 srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch create mode 100644 srcpkgs/python3-pwntools/patches/py3.12.patch diff --git a/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch b/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch deleted file mode 100644 index 739af6984c4..00000000000 --- a/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch +++ /dev/null @@ -1,18 +0,0 @@ -Index: setup.py -=================================================================== ---- a/setup.py -+++ b/setup.py -@@ -64,13 +64,6 @@ install_requires = ['paramiko>=1.15. - 'six>=1.12.0', - ] - --# Check that the user has installed the Python development headers --PythonH = os.path.join(get_python_inc(), 'Python.h') --if not os.path.exists(PythonH): -- print("You must install the Python development headers!", file=sys.stderr) -- print("$ apt-get install python-dev", file=sys.stderr) -- sys.exit(-1) -- - # Convert README.md to reStructuredText for PyPI - long_description = '' - try: diff --git a/srcpkgs/python3-pwntools/patches/py3.12.patch b/srcpkgs/python3-pwntools/patches/py3.12.patch new file mode 100644 index 00000000000..067e948a3b4 --- /dev/null +++ b/srcpkgs/python3-pwntools/patches/py3.12.patch @@ -0,0 +1,11 @@ +--- a/pwnlib/util/safeeval.py ++++ b/pwnlib/util/safeeval.py +@@ -4,7 +4,7 @@ + 'POP_TOP','ROT_TWO','ROT_THREE','ROT_FOUR','DUP_TOP', + 'BUILD_LIST','BUILD_MAP','BUILD_TUPLE','BUILD_SET', + 'BUILD_CONST_KEY_MAP', 'BUILD_STRING', +- 'LOAD_CONST','RETURN_VALUE','STORE_SUBSCR', 'STORE_MAP', ++ 'LOAD_CONST','RETURN_VALUE','RETURN_CONST','STORE_SUBSCR', 'STORE_MAP', + 'LIST_TO_TUPLE', 'LIST_EXTEND', 'SET_UPDATE', 'DICT_UPDATE', 'DICT_MERGE', + 'COPY', 'RESUME', + ] diff --git a/srcpkgs/python3-pwntools/template b/srcpkgs/python3-pwntools/template index ddb6490b9ed..47240a07f62 100644 --- a/srcpkgs/python3-pwntools/template +++ b/srcpkgs/python3-pwntools/template @@ -1,9 +1,9 @@ # Template file for 'python3-pwntools' pkgname=python3-pwntools -version=4.10.0 -revision=2 +version=4.11.0 +revision=1 build_style=python3-module -hostmakedepends="python3-setuptools" +hostmakedepends="python3-setuptools python3-devel" makedepends="python3-devel" depends="capstone-python3 python3 python3-Mako python3-Pygments python3-dateutil python3-intervaltree python3-packaging python3-paramiko @@ -16,7 +16,7 @@ maintainer="Leah Neukirchen " license="MIT, BSD-2-Clause" homepage="https://github.com/Gallopsled/pwntools" distfiles="${PYPI_SITE}/p/pwntools/pwntools-${version}.tar.gz" -checksum=588e89ea678527c0b5b6caeeee7e76e31352e78e2f1cf3dda7bc9acf526e446d +checksum=a85f1e777f343f91e221d175e1523d006eef1c8106c10fd2e338280bab273fa6 make_check=no post_install() {