2017-10-29 00:39:03 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, Mako, packaging, pysocks, pygments, ROPGadget
|
|
|
|
, capstone, paramiko, pip, psutil
|
2018-02-02 18:16:39 +00:00
|
|
|
, pyelftools, pyserial, dateutil
|
|
|
|
, requests, tox, unicorn, intervaltree, fetchpatch }:
|
2017-10-29 00:39:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-01-07 08:01:01 +00:00
|
|
|
version = "3.11.0";
|
2017-10-29 00:39:03 +01:00
|
|
|
pname = "pwntools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-07 08:01:01 +00:00
|
|
|
sha256 = "609b3f0ba47c975f4dbedd3da2af4c5ca1b3a2aa13fb99240531b6a68edb87be";
|
2017-10-29 00:39:03 +01:00
|
|
|
};
|
|
|
|
|
2018-02-02 18:16:39 +00:00
|
|
|
propagatedBuildInputs = [ Mako packaging pysocks pygments ROPGadget capstone paramiko pip psutil pyelftools pyserial dateutil requests tox unicorn intervaltree ];
|
2017-10-29 00:39:03 +01:00
|
|
|
|
|
|
|
disabled = isPy3k;
|
2017-12-17 18:38:18 +00:00
|
|
|
doCheck = false; # no setuptools tests for the package
|
2017-10-29 00:39:03 +01:00
|
|
|
|
2018-02-02 18:16:39 +00:00
|
|
|
# Can be removed when 3.12.0 is released
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Gallopsled/pwntools/pull/1098.patch";
|
|
|
|
sha256 = "0p0h87npn1mwsd8ciab7lg74bk3ahlk5r0mjbvx4jhihl2gjc3z2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2017-10-29 00:39:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://pwntools.com";
|
|
|
|
description = "CTF framework and exploit development library";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bennofs kristoff3r ];
|
|
|
|
};
|
|
|
|
}
|