From cb7d50dc6a81dc470cbb744de8473f8a881ec4fe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 6 Jul 2021 09:59:28 +0200 Subject: [PATCH] python3Packages.ROPGadget: 6.5 -> 6.6 --- .../python-modules/ROPGadget/default.nix | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/ROPGadget/default.nix b/pkgs/development/python-modules/ROPGadget/default.nix index 6be0ed48e289..aaf31f06a1cc 100644 --- a/pkgs/development/python-modules/ROPGadget/default.nix +++ b/pkgs/development/python-modules/ROPGadget/default.nix @@ -1,16 +1,30 @@ -{ lib, buildPythonPackage, fetchPypi -, capstone}: +{ lib +, buildPythonPackage +, fetchFromGitHub +, capstone +}: buildPythonPackage rec { - pname = "ROPGadget"; + pname = "ropgadget"; version = "6.6"; - src = fetchPypi { - inherit pname version; - sha256 = "dc61186e0114ec67ec7ce374df8fd2ddc2a7cba129a1242338e900a7483fba22"; + src = fetchFromGitHub { + owner = "JonathanSalwan"; + repo = "ROPgadget"; + rev = "v${version}"; + sha256 = "1i0gx0cwhxk6d8byvck17hh83szz3k6ndd118ha3q0r0msap0lz1"; }; - propagatedBuildInputs = [ capstone ]; + propagatedBuildInputs = [ + capstone + ]; + + # Test suite is working with binaries + doCheck = false; + + pythonImportsCheck = [ + "ropgadget" + ]; meta = with lib; { description = "Tool to search for gadgets in binaries to facilitate ROP exploitation";