Commit faf8b611 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.httpx-retries: init at 0.5.0

parent d1f12a81
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -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 { };