python3Packages.httplib2: fix tests

This commit is contained in:
Robert Schütz 2021-07-01 08:07:05 +02:00 committed by Jonathan Ringer
parent 07571e7ae5
commit f019d3adb2

View File

@ -2,6 +2,7 @@
, stdenv , stdenv
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, isPy27 , isPy27
, mock , mock
, pyparsing , pyparsing
@ -24,6 +25,14 @@ buildPythonPackage rec {
sha256 = "sha256-e0Mq9AVJEWQ9GEtYFXk2fMIs7GtAUsyJN6XheqAnD3I="; sha256 = "sha256-e0Mq9AVJEWQ9GEtYFXk2fMIs7GtAUsyJN6XheqAnD3I=";
}; };
patches = [
# fix test_inject_space
(fetchpatch {
url = "https://github.com/httplib2/httplib2/commit/08d6993b69256fbc6c0b1c615c24910803c4d610.patch";
sha256 = "0kbd1skn58m20kfkh4qzd66g9bvj31xlkbhsg435dkk4qz6l3yn3";
})
];
postPatch = '' postPatch = ''
sed -i "/--cov/d" setup.cfg sed -i "/--cov/d" setup.cfg
''; '';