Unverified Commit b17b15fe authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.iaqualink: 0.6.0 -> 0.7.0, python3Packages.httpx-retries: init at 0.5.0 (#514984)

parents b444a20f 575a009d
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 ];
  };
})
+24 −11
Original line number Diff line number Diff line
@@ -4,25 +4,25 @@
  fetchFromGitHub,
  hatch-vcs,
  hatchling,
  httpx-retries,
  httpx,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  pyyaml,
  respx,
  typer,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "iaqualink";
  version = "0.6.0";
  version = "0.7.0";
  pyproject = true;

  disabled = pythonOlder "3.12";

  src = fetchFromGitHub {
    owner = "flz";
    repo = "iaqualink-py";
    tag = "v${version}";
    hash = "sha256-s/ZhcbTaCvn7ei1O4+P4fKPojitl+4gsatc9PZx+W2g=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Bn4dcfTRkY+qc/c39ip+vZvlbqll7qZOl7phMgw9EjY=";
  };

  build-system = [
@@ -30,21 +30,34 @@ buildPythonPackage rec {
    hatchling
  ];

  dependencies = [ httpx ] ++ httpx.optional-dependencies.http2;
  dependencies = [
    httpx
    httpx-retries
  ]
  ++ httpx.optional-dependencies.http2;

  optional-dependencies = {
    cli = [
      pyyaml
      typer
    ];
  };

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
    respx
  ];
    typer
  ]
  ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);

  pythonImportsCheck = [ "iaqualink" ];

  meta = {
    description = "Python library for Jandy iAqualink";
    homepage = "https://github.com/flz/iaqualink-py";
    changelog = "https://github.com/flz/iaqualink-py/releases/tag/${src.tag}";
    changelog = "https://github.com/flz/iaqualink-py/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.bsd3;
    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 { };