python310Packages.cachecontrol: Fix tests with requests 2.29.0
Use the HTTPResponse from urllib3 directly, because requests stopped importing it.
This commit is contained in:
parent
0a82cd9e62
commit
4b9439314a
@ -27,6 +27,13 @@ buildPythonPackage rec {
|
||||
hash = "sha256-uUPIQz/n347Q9G7NDOGuB760B/KxOglUxiS/rYjt5Po=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/ionrock/cachecontrol/issues/297
|
||||
substituteInPlace tests/test_etag.py --replace \
|
||||
"requests.adapters.HTTPResponse.from_httplib" \
|
||||
"urllib3.response.HTTPResponse.from_httplib"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
msgpack
|
||||
requests
|
||||
|
Loading…
Reference in New Issue
Block a user