From 197ef32594629926abce61aedce845d7c35b9aef Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 May 2023 21:29:08 +0200 Subject: [PATCH] python310Packages.pwntools: clean-up postPatch section - add changelog to meta --- pkgs/development/python-modules/pwntools/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pwntools/default.nix b/pkgs/development/python-modules/pwntools/default.nix index 32cc0f9f0ee..8e3df0360de 100644 --- a/pkgs/development/python-modules/pwntools/default.nix +++ b/pkgs/development/python-modules/pwntools/default.nix @@ -28,8 +28,8 @@ let debuggerName = lib.strings.getName debugger; in buildPythonPackage rec { - version = "4.10.0"; pname = "pwntools"; + version = "4.10.0"; src = fetchPypi { inherit pname version; @@ -37,11 +37,6 @@ buildPythonPackage rec { }; postPatch = '' - # Upstream has set an upper bound on unicorn because of https://github.com/Gallopsled/pwntools/issues/1538, - # but since that is a niche use case and it requires extra work to get unicorn 1.0.2rc3 to work we relax - # the bound here. Check if this is still necessary when updating! - sed -i 's/unicorn>=1.0.2rc1,<1.0.2rc4/unicorn>=1.0.2rc1/' setup.py - # Upstream hardcoded the check for the command `gdb-multiarch`; # Forcefully use the provided debugger, as `gdb` (hence `pwndbg`) is built with multiarch in `nixpkgs`. sed -i 's/gdb-multiarch/${debuggerName}/' pwnlib/gdb.py @@ -84,8 +79,9 @@ buildPythonPackage rec { ''; meta = with lib; { - homepage = "https://pwntools.com"; description = "CTF framework and exploit development library"; + homepage = "https://pwntools.com"; + changelog = "https://github.com/Gallopsled/pwntools/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ]; };