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-02-28 09:05:12 +00:00
|
|
|
version = "3.12.0";
|
2017-10-29 00:39:03 +01:00
|
|
|
pname = "pwntools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-28 09:05:12 +00:00
|
|
|
sha256 = "09a7yhsyqxb4xf2r6mbn3p5zx1wp89lxq7lj34y4zbin6ns5929s";
|
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-28 09:05:12 +00:00
|
|
|
# Can be removed when 3.13.0 is released
|
2018-02-02 18:16:39 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2018-02-28 09:05:12 +00:00
|
|
|
url = "https://github.com/Gallopsled/pwntools/commit/9859f54a21404174dd17efee02f91521a2dd09c5.patch";
|
2018-02-02 18:16:39 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|