diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-19 01:41:02 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-19 01:41:02 +0100 |
commit | ae19d81c8d6c2408a2b80898e864458f33d0441d (patch) | |
tree | 99dacd6667ca0c9fa0c3e2ef2e616f6c285b356d /pkgs/development/python-modules/faulthandler | |
parent | 68d08a0574bbd963a05598ca5c9f9df23ff68802 (diff) |
pythonPackages.faulthandler: fix tests
The added patches accept "python2.7" as thread name in tests.
Diffstat (limited to 'pkgs/development/python-modules/faulthandler')
-rw-r--r-- | pkgs/development/python-modules/faulthandler/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/faulthandler/default.nix b/pkgs/development/python-modules/faulthandler/default.nix index ee2a65e981ca..1fc1aea94d57 100644 --- a/pkgs/development/python-modules/faulthandler/default.nix +++ b/pkgs/development/python-modules/faulthandler/default.nix @@ -1,7 +1,6 @@ -{ stdenv, fetchPypi, buildPythonPackage }: +{ stdenv, fetchPypi, buildPythonPackage, fetchpatch }: buildPythonPackage rec { - name = "${pname}-${version}"; pname = "faulthandler"; version = "3.0"; @@ -10,6 +9,17 @@ buildPythonPackage rec { sha256 = "acc10e10909f0f956ba1b42b6c450ea0bdaaa27b3942899f65931396cfcdd36a"; }; + patches = [ + (fetchpatch { + url = https://github.com/vstinner/faulthandler/commit/67b661e.patch; + sha256 = "1nn8c9nq5qypja949hzz0n4yprsyr63wihf5g3gwrinm2nkjnnv7"; + }) + (fetchpatch { + url = https://github.com/vstinner/faulthandler/commit/07cbb7b.patch; + sha256 = "0fh6rjyjw7z1hsiy3sgdc8j9mncg1vlv3y0h4bplqyw18vq3srb3"; + }) + ]; + meta = { description = "Dump the Python traceback"; license = stdenv.lib.licenses.bsd2; |