python310Packages.pwntools: clean-up postPatch section
- add changelog to meta
This commit is contained in:
parent
00342befa0
commit
197ef32594
|
@ -28,8 +28,8 @@ let
|
||||||
debuggerName = lib.strings.getName debugger;
|
debuggerName = lib.strings.getName debugger;
|
||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.10.0";
|
|
||||||
pname = "pwntools";
|
pname = "pwntools";
|
||||||
|
version = "4.10.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -37,11 +37,6 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
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`;
|
# Upstream hardcoded the check for the command `gdb-multiarch`;
|
||||||
# Forcefully use the provided debugger, as `gdb` (hence `pwndbg`) is built with multiarch in `nixpkgs`.
|
# Forcefully use the provided debugger, as `gdb` (hence `pwndbg`) is built with multiarch in `nixpkgs`.
|
||||||
sed -i 's/gdb-multiarch/${debuggerName}/' pwnlib/gdb.py
|
sed -i 's/gdb-multiarch/${debuggerName}/' pwnlib/gdb.py
|
||||||
|
@ -84,8 +79,9 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pwntools.com";
|
|
||||||
description = "CTF framework and exploit development library";
|
description = "CTF framework and exploit development library";
|
||||||
|
homepage = "https://pwntools.com";
|
||||||
|
changelog = "https://github.com/Gallopsled/pwntools/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ];
|
maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue