python3Packages.httpx-retries: init at 0.5.0
Retry layer for HTTPX https://github.com/will-ockmore/httpx-retries
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user