python3Packages.mocket: relax decorator constraint

Disables a failing test case, because of the relaxed constraint. The
geoip2 package, the only consumer of this package, does not exhibit any
problems resulting from this change.
This commit is contained in:
Martin Weinelt 2021-08-30 14:23:24 +02:00
parent f777eddfce
commit 495a9649e6

View file

@ -27,6 +27,11 @@ buildPythonPackage rec {
sha256 = "1vvlbnbypd4z1pjlvhwhd89fn0mis5acfx4v25f1mfl04k63ffah";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "decorator>=4.0.0,<5" "decorator>=4.0.0,<6"
'';
propagatedBuildInputs = [
decorator
http-parser
@ -54,6 +59,8 @@ buildPythonPackage rec {
];
disabledTests = [
# incompatible with decorator>=5
"test_patch"
# tests that require network access (like DNS lookups)
"test_truesendall"
"test_truesendall_with_chunk_recording"