python3Packages.httpcore: 0.13.0 -> 0.13.4

launchpad/nixpkgs/master
Fabian Affolter 3 years ago committed by Jonathan Ringer
parent 7b22e0adfa
commit 35832045ce
  1. 17
      pkgs/development/python-modules/httpcore/default.nix

@ -2,31 +2,33 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
, anyio
, h11 , h11
, h2 , h2
, pproxy , pproxy
, pytest-asyncio , pytest-asyncio
, pytest-trio
, pytestCheckHook , pytestCheckHook
, pytestcov , pytestcov
, sniffio , sniffio
, trio
, trustme , trustme
, uvicorn , uvicorn
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "httpcore"; pname = "httpcore";
version = "0.13.0"; version = "0.13.4";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-KvqBVQUaF3p2oJz0tt3Bkn2JiKEHqrZ3b6I9f0JK5h8="; sha256 = "0vfdkd3bq14mnjd2gfg3ajsgygmd796md7pv96nicpx20prw3a2p";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
anyio
h11 h11
h2 h2
sniffio sniffio
@ -35,16 +37,23 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pproxy pproxy
pytest-asyncio pytest-asyncio
pytest-trio
pytestCheckHook pytestCheckHook
pytestcov pytestcov
trio
trustme trustme
uvicorn uvicorn
]; ];
postPatch = ''
# The anyio 3.1.0 release is not picked-up proberly
substituteInPlace setup.py --replace "anyio==3.*" "anyio"
'';
disabledTestPaths = [ disabledTestPaths = [
# these tests fail during dns lookups: httpcore.ConnectError: [Errno -2] Name or service not known # these tests fail during dns lookups: httpcore.ConnectError: [Errno -2] Name or service not known
"tests/test_threadsafety.py" "tests/test_threadsafety.py"
"tests/async_tests/"
"tests/sync_tests/test_interfaces.py" "tests/sync_tests/test_interfaces.py"
"tests/sync_tests/test_retries.py" "tests/sync_tests/test_retries.py"
]; ];

Loading…
Cancel
Save