From faf8b6119f99aad757f0fe66afd44ff4fe53ef8f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 30 Apr 2026 09:16:45 +0200 Subject: [PATCH] python3Packages.httpx-retries: init at 0.5.0 Retry layer for HTTPX https://github.com/will-ockmore/httpx-retries --- .../python-modules/httpx-retries/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/httpx-retries/default.nix diff --git a/pkgs/development/python-modules/httpx-retries/default.nix b/pkgs/development/python-modules/httpx-retries/default.nix new file mode 100644 index 000000000000..f56331bae012 --- /dev/null +++ b/pkgs/development/python-modules/httpx-retries/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-fancy-pypi-readme, + hatchling, + httpx, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "httpx-retries"; + version = "0.5.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "will-ockmore"; + repo = "httpx-retries"; + tag = finalAttrs.version; + hash = "sha256-LElTcIWNsb2AVbk3dXcCnXeB8JhyM7Y64nTZGZWlVm8="; + }; + + build-system = [ + hatch-fancy-pypi-readme + hatchling + ]; + + dependencies = [ httpx ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "httpx_retries" ]; + + meta = { + description = "Retry layer for HTTPX"; + homepage = "https://github.com/will-ockmore/httpx-retries"; + changelog = "https://github.com/will-ockmore/httpx-retries/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 770ef1bcca24..e53172f96fbd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7252,6 +7252,8 @@ self: super: with self; { httpx-oauth = callPackage ../development/python-modules/httpx-oauth { }; + httpx-retries = callPackage ../development/python-modules/httpx-retries { }; + httpx-socks = callPackage ../development/python-modules/httpx-socks { }; httpx-sse = callPackage ../development/python-modules/httpx-sse { };