summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2019-09-10 19:37:39 +0200
committerPeter Simons <simons@cryp.to>2019-09-10 19:38:39 +0200
commit26771ad0c52265fb13ed86743193f485920c37c6 (patch)
tree3be6df2634c43dbd8f12d7488d13f6558b57b63d
parenta9b1f444b5261106b4381a9ce56b44c6250768e6 (diff)
downloadnixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar.gz
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar.bz2
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar.lz
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar.xz
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.tar.zst
nixpkgs-26771ad0c52265fb13ed86743193f485920c37c6.zip
python-blessed: apply upstream patches to fix the test suite
Fixes https://github.com/NixOS/nixpkgs/issues/68427.
-rw-r--r--pkgs/development/python-modules/blessed/default.nix21
1 files changed, 19 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/blessed/default.nix b/pkgs/development/python-modules/blessed/default.nix
index 784de33e7ad..164848aeac9 100644
--- a/pkgs/development/python-modules/blessed/default.nix
+++ b/pkgs/development/python-modules/blessed/default.nix
@@ -1,5 +1,20 @@
-{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
-, glibcLocales }:
+{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, six
+, wcwidth, pytest, mock, glibcLocales
+}:
+
+let
+
+  fixTestSuiteFailure_1 = fetchpatch {
+    url = https://github.com/jquast/blessed/pull/108/commits/76a54d39b0f58bfc71af04ee143459eefb0e1e7b.patch;
+    sha256 = "1higmv4c03ly7ywac1d7s71f3hrl531vj16nsfl9xh6zh9c47qcg";
+  };
+
+  fixTestSuiteFailure_2 = fetchpatch {
+    url = https://github.com/jquast/blessed/pull/108/commits/aa94e01aed745715e667601fb674844b257cfcc9.patch;
+    sha256 = "1frygr6sc1vakdfx1hf6jj0dbwibiqz8hw9maf1b605cbslc9nay";
+  };
+
+in
 
 buildPythonPackage rec {
   pname = "blessed";
@@ -10,6 +25,8 @@ buildPythonPackage rec {
     sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
   };
 
+  patches = [ fixTestSuiteFailure_1 fixTestSuiteFailure_2 ];
+
   checkInputs = [ pytest mock glibcLocales ];
 
   checkPhase = ''