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