python3Packages.retryhttp: init at 1.3.1

This commit is contained in:
Sergey Volkov
2025-03-31 15:47:32 +02:00
committed by Sergei Volkov
parent ba61bcfe8c
commit f96cdc8f97
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build system
setuptools,
setuptools-scm,
# runtime
httpx,
pydantic,
requests,
tenacity,
types-requests,
}:
buildPythonPackage rec {
pname = "retryhttp";
version = "1.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "austind";
repo = "retryhttp";
tag = "release/v${version}";
hash = "sha256-Jz073CTeIfPjcOQUGdb6/Q5OfEXZW5hTiEPKrfAK0Gg=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
httpx
pydantic
requests
tenacity
types-requests
];
pythonImportsCheck = [ "retryhttp" ];
meta = {
description = "Retry potentially transient HTTP errors in Python";
homepage = "https://github.com/austind/retryhttp";
changelog = "https://github.com/austind/retryhttp/releases/tag/release%2Fv${version}";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ taranarmo ];
};
}

View File

@@ -16482,6 +16482,8 @@ self: super: with self; {
retry2 = callPackage ../development/python-modules/retry2 { };
retryhttp = callPackage ../development/python-modules/retryhttp { };
retrying = callPackage ../development/python-modules/retrying { };
returns = callPackage ../development/python-modules/returns { };