pythonPackages.httpx: 0.12.1 -> 0.14.2

slim down some no longer needed dependencies
This commit is contained in:
Robert Scott 2020-08-27 23:08:49 +01:00 committed by Jon
parent e98facbda3
commit 063692bb10

View file

@ -2,64 +2,60 @@
, buildPythonPackage
, fetchFromGitHub
, certifi
, hstspreload
, chardet
, h11
, h2
, httpcore
, idna
, rfc3986
, sniffio
, isPy27
, pytest
, pytest-asyncio
, pytest-trio
, pytestcov
, trustme
, uvicorn
, trio
, brotli
, urllib3
}:
buildPythonPackage rec {
pname = "httpx";
version = "0.12.1";
version = "0.14.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "1nrp4h1ppb5vll81fzxmks82p0hxcil9f3mja3dgya511kc703h6";
sha256 = "08b6k5g8car3bic90aw4ysb2zvsa5nm8qk3hk4dgamllnnxzl5br";
};
propagatedBuildInputs = [
certifi
hstspreload
chardet
h11
h2
httpcore
idna
rfc3986
sniffio
urllib3
];
checkInputs = [
pytest
pytest-asyncio
pytest-trio
pytestcov
trustme
uvicorn
trio
brotli
];
postPatch = ''
substituteInPlace setup.py \
--replace "h11==0.8.*" "h11"
'';
checkPhase = ''
PYTHONPATH=.:$PYTHONPATH pytest
PYTHONPATH=.:$PYTHONPATH pytest -k 'not (test_connect_timeout or test_elapsed_timer)'
'';
pythonImportsCheck = [ "httpx" ];
meta = with lib; {
description = "The next generation HTTP client";