python310Packages.pwntools: clean-up postPatch section

- add changelog to meta
This commit is contained in:
Fabian Affolter 2023-05-21 21:29:08 +02:00 committed by GitHub
parent 00342befa0
commit 197ef32594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};