Skip to content

Commit b16ed16

Browse files
committedJul 1, 2017
python-pwntools: 3.1 -> 3.7 (including dependencies)
1 parent 26f47d1 commit b16ed16

File tree

1 file changed

+65
-28
lines changed

1 file changed

+65
-28
lines changed
 

‎pkgs/top-level/python-packages.nix

+65-28
Original file line numberDiff line numberDiff line change
@@ -30133,13 +30133,13 @@ EOF
3013330133

3013430134
pwntools = buildPythonPackage rec {
3013530135
name = "pwntools-${version}";
30136-
version = "3.1.0";
30136+
version = "3.7.0";
3013730137

3013830138
src = pkgs.fetchurl {
3013930139
url = "mirror://pypi/p/pwntools/${name}.tar.gz";
30140-
sha256 = "1siyky6iq2b155sfjhx10yg2ihvjp2s3kr6i0n5z9v5pi0r7gc6d";
30140+
sha256 = "1d2q42cmgh7l2k6l2gy4zllgj9a5qc59af3skp2b80hmv88h6vij";
3014130141
};
30142-
propagatedBuildInputs = with self; [ Mako packaging pysocks pygments ROPGadget capstone paramiko pip psutil pyelftools pypandoc pyserial dateutil requests tox pkgs.pandoc ];
30142+
propagatedBuildInputs = with self; [ Mako packaging pysocks pygments ROPGadget capstone paramiko pip psutil pyelftools pypandoc pyserial dateutil requests tox pkgs.pandoc unicorn intervaltree ];
3014330143

3014430144
disabled = isPy3k;
3014530145

@@ -30151,28 +30151,6 @@ EOF
3015130151
};
3015230152
};
3015330153

30154-
pytoml = buildPythonPackage rec {
30155-
name = "pytoml-${version}";
30156-
version = "0.1.11";
30157-
30158-
checkPhase = "${python.interpreter} test/test.py";
30159-
30160-
# fetchgit used to ensure test submodule is available
30161-
src = pkgs.fetchgit {
30162-
url = "${meta.homepage}.git";
30163-
rev = "refs/tags/v${version}";
30164-
sha256 = "1jiw04zk9ccynr8kb1vqh9r1p2kh0al7g7b1f94911iazg7dgs9j";
30165-
};
30166-
30167-
meta = {
30168-
description = "A TOML parser/writer for Python";
30169-
homepage = https://github.com/avakar/pytoml;
30170-
license = licenses.mit;
30171-
maintainers = with maintainers; [ peterhoeg ];
30172-
};
30173-
30174-
};
30175-
3017630154
ROPGadget = buildPythonPackage rec {
3017730155
name = "ROPGadget-5.4";
3017830156
src = pkgs.fetchurl {
@@ -30188,6 +30166,47 @@ EOF
3018830166
};
3018930167
};
3019030168

30169+
unicorn = buildPythonPackage rec {
30170+
name = "unicorn-${version}";
30171+
version = "1.0.1";
30172+
src = pkgs.fetchurl {
30173+
url = "mirror://pypi/u/unicorn/${name}.tar.gz";
30174+
sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
30175+
};
30176+
setupPyBuildFlags = [ "--plat-name" "linux" ];
30177+
meta = with pkgs.stdenv.lib; {
30178+
description = "Unicorn CPU emulator engine";
30179+
homepage = "http://www.unicorn-engine.org/";
30180+
license = [ licenses.gpl2 ];
30181+
maintainers = with stdenv.maintainers; [ bennofs ];
30182+
};
30183+
};
30184+
30185+
intervaltree = buildPythonPackage rec {
30186+
name = "intervaltree-${version}";
30187+
version = "2.1.0";
30188+
src = pkgs.fetchurl {
30189+
url = "mirror://pypi/i/intervaltree/${name}.tar.gz";
30190+
sha256 = "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc";
30191+
};
30192+
buildInputs = with self; [ pytest ];
30193+
propagatedBuildInputs = with self; [ sortedcontainers ];
30194+
checkPhase = ''
30195+
runHook preCheck
30196+
# pytest will try to run tests for nix_run_setup.py / files in build/lib which fails
30197+
mv nix_run_setup.py run_setup
30198+
rm build -rf
30199+
${python.interpreter} run_setup test
30200+
runHook postCheck
30201+
'';
30202+
meta = with pkgs.stdenv.lib; {
30203+
description = "Editable interval tree data structure for Python 2 and 3";
30204+
homepage = https://github.com/chaimleib/intervaltree;
30205+
license = [ licenses.asl2 ];
30206+
maintainers = with stdenv.maintainers; [ bennofs ];
30207+
};
30208+
};
30209+
3019130210
packaging = buildPythonPackage rec {
3019230211
name = "packaging-16.8";
3019330212
src = pkgs.fetchurl {
@@ -30196,16 +30215,34 @@ EOF
3019630215
};
3019730216
propagatedBuildInputs = with self; [ pyparsing six ];
3019830217
buildInputs = with self; [ pytest pretend ];
30218+
3019930219
meta = with pkgs.stdenv.lib; {
3020030220
description = "Core utilities for Python packages";
3020130221
homepage = "https://github.com/pypa/packaging";
3020230222
license = [ licenses.bsd2 licenses.asl20 ];
3020330223
maintainers = with maintainers; [ bennofs ];
3020430224
};
30225+
};
3020530226

30206-
checkPhase = ''
30207-
py.test
30208-
'';
30227+
pytoml = buildPythonPackage rec {
30228+
name = "pytoml-${version}";
30229+
version = "0.1.11";
30230+
30231+
checkPhase = "${python.interpreter} test/test.py";
30232+
30233+
# fetchgit used to ensure test submodule is available
30234+
src = pkgs.fetchgit {
30235+
url = "${meta.homepage}.git";
30236+
rev = "refs/tags/v${version}";
30237+
sha256 = "1jiw04zk9ccynr8kb1vqh9r1p2kh0al7g7b1f94911iazg7dgs9j";
30238+
};
30239+
30240+
meta = {
30241+
description = "A TOML parser/writer for Python";
30242+
homepage = https://github.com/avakar/pytoml;
30243+
license = licenses.mit;
30244+
maintainers = with maintainers; [ peterhoeg ];
30245+
};
3020930246
};
3021030247

3021130248
pypandoc = buildPythonPackage rec {

0 commit comments

Comments
 (0)