python3Packages.sanic-testing: relax httpcore, httpx pins

This commit is contained in:
Martin Weinelt 2021-05-05 22:52:15 +02:00
parent 5e03f19981
commit db37438260
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -20,6 +20,12 @@ buildPythonPackage rec {
hash = "sha256-hBAq+/BKs0a01M89Nb8HaClqxB+W5PTfjVzef/m9SWs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'httpx>=0.16, <0.18' 'httpx' \
--replace 'httpcore==0.12.*' 'httpcore'
'';
propagatedBuildInputs = [ httpx sanic websockets httpcore ];
# `sanic` is explicitly set to null when building `sanic` itself