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-09-01 21:23:23 +02:00
parent 4c79661bb2
commit 6d8b7d40e7
@@ -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"