Skip to content

Commit edfcd37

Browse files
committed
python: pwntools: 4.1.1 -> 4.2.1
The previous update broke the build, this updates fixes it
1 parent 8b633d8 commit edfcd37

1 file changed

Lines changed: 49 additions & 8 deletions

File tree

pkgs/development/python-modules/pwntools/default.nix

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,60 @@
1-
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2-
, Mako, packaging, pysocks, pygments, ROPGadget
3-
, capstone, paramiko, pip, psutil
4-
, pyelftools, pyserial, dateutil
5-
, requests, tox, unicorn, intervaltree, fetchpatch }:
1+
{ stdenv
2+
, buildPythonPackage
3+
, fetchPypi
4+
, isPy3k
5+
, Mako
6+
, packaging
7+
, pysocks
8+
, pygments
9+
, ROPGadget
10+
, capstone
11+
, paramiko
12+
, pip
13+
, psutil
14+
, pyelftools
15+
, pyserial
16+
, dateutil
17+
, requests
18+
, tox
19+
, unicorn
20+
, intervaltree
21+
, fetchpatch
22+
}:
623

724
buildPythonPackage rec {
8-
version = "4.1.1";
25+
version = "4.2.1";
926
pname = "pwntools";
1027

1128
src = fetchPypi {
1229
inherit pname version;
13-
sha256 = "694ce7a6cfca0ad40eae36c1d2663c44eb953f84785c63daa9752b4dfa7f39d8";
30+
sha256 = "1fh7sq9wrcfvn44qryln9cyg99pilvyq9bp80758lgdd6ss6hdqd";
1431
};
1532

16-
propagatedBuildInputs = [ Mako packaging pysocks pygments ROPGadget capstone paramiko pip psutil pyelftools pyserial dateutil requests tox unicorn intervaltree ];
33+
# Upstream has set an upper bound on unicorn because of https://github.com/Gallopsled/pwntools/issues/1538,
34+
# but since that is a niche use case and it requires extra work to get unicorn 1.0.2rc3 to work we relax
35+
# the bound here. Check if this is still necessary when updating!
36+
postPatch = ''
37+
sed -i 's/unicorn>=1.0.2rc1,<1.0.2rc4/unicorn>=1.0.2rc1/' setup.py
38+
'';
39+
40+
propagatedBuildInputs = [
41+
Mako
42+
packaging
43+
pysocks
44+
pygments
45+
ROPGadget
46+
capstone
47+
paramiko
48+
pip
49+
psutil
50+
pyelftools
51+
pyserial
52+
dateutil
53+
requests
54+
tox
55+
unicorn
56+
intervaltree
57+
];
1758

1859
doCheck = false; # no setuptools tests for the package
1960

0 commit comments

Comments
 (0)