Unverified Commit 197ef325 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.pwntools: clean-up postPatch section

- add changelog to meta
parent 00342bef
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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 ];
  };