Files
2026-04-30 09:16:45 +02:00

46 lines
949 B
Nix

{
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 ];
};
})