diff options
Diffstat (limited to 'pkgs/development/python-modules/httpx/default.nix')
-rw-r--r-- | pkgs/development/python-modules/httpx/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 4d4c264ea015..f4572167049f 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -27,11 +27,12 @@ pytest-trio, trustme, uvicorn, + zstandard, }: buildPythonPackage rec { pname = "httpx"; - version = "0.27.0"; + version = "0.27.2"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -40,10 +41,10 @@ buildPythonPackage rec { owner = "encode"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-13EnSzrCkseK6s6Yz9OpLzqo/2PTFiB31m5fAIJLoZg="; + hash = "sha256-N0ztVA/KMui9kKIovmOfNTwwrdvSimmNkSvvC+3gpck="; }; - nativeBuildInputs = [ + build-system = [ hatch-fancy-pypi-readme hatchling ]; @@ -56,19 +57,20 @@ buildPythonPackage rec { sniffio ]; - passthru.optional-dependencies = { - http2 = [ h2 ]; - socks = [ socksio ]; + optional-dependencies = { brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; cli = [ click rich pygments ]; + http2 = [ h2 ]; + socks = [ socksio ]; + zstd = [ zstandard ]; }; # trustme uses pyopenssl - doCheck = !(stdenv.isDarwin && stdenv.isAarch64); + doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); nativeCheckInputs = [ chardet @@ -78,7 +80,7 @@ buildPythonPackage rec { pytest-trio trustme uvicorn - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (builtins.attrValues optional-dependencies); # testsuite wants to find installed packages for testing entrypoint preCheck = '' |