python39Packages.sanic-testing: loose httpx constraint

This commit is contained in:
Sandro Jäckel 2021-08-27 17:18:37 +02:00 committed by Martin Weinelt
parent 5b7bb40a3c
commit 308c47e656

View File

@ -19,6 +19,13 @@ buildPythonPackage rec {
sha256 = "1pf619cd3dckn3d8gh18vbn7dflvb0mzpf6frx4y950x2j3rdplk";
};
postPatch = ''
# https://github.com/sanic-org/sanic-testing/issues/19
substituteInPlace setup.py \
--replace '"websockets==8.1",' '"websockets>=9.1",' \
--replace "httpx==0.18.*" "httpx"
'';
propagatedBuildInputs = [
httpx
sanic
@ -30,12 +37,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# https://github.com/sanic-org/sanic-testing/issues/19
substituteInPlace setup.py \
--replace '"websockets==8.1",' '"websockets>=9.1",'
'';
# `sanic` is explicitly set to null when building `sanic` itself
# to prevent infinite recursion. In that case we skip running
# the package at all.