Merge pull request #136458 from mweinelt/21.05/fix-httplib2

This commit is contained in:
Martin Weinelt 2021-09-02 13:22:16 +02:00 committed by GitHub
commit b642e782d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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