python310Packages.httpcore: 0.15.0 -> 0.16.2

This commit is contained in:
Sandro Jäckel 2022-11-27 23:04:24 +01:00
parent 30eeef2e79
commit f59a206a68
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "httpcore";
version = "0.15.0";
version = "0.16.2";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -26,14 +26,9 @@ buildPythonPackage rec {
owner = "encode";
repo = pname;
rev = version;
hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo=";
hash = "sha256-bwGZ/B0jlvc1BmXVTo7gMP6PJIQuCHclkHjKQCgMsyU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "h11>=0.11,<0.13" "h11>=0.11,<0.14"
'';
propagatedBuildInputs = [
anyio
certifi
@ -63,6 +58,12 @@ buildPythonPackage rec {
"httpcore"
];
preCheck = ''
# remove upstreams pytest flags which cause:
# httpcore.ConnectError: TLS/SSL connection has been closed (EOF) (_ssl.c:997)
rm setup.cfg
'';
pytestFlagsArray = [
"--asyncio-mode=strict"
];