nixpkgs/pkgs/development/python-modules/retryhttp/default.nix
2026-05-06 13:37:09 +00:00

50 lines
964 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build system
setuptools,
setuptools-scm,
# runtime
httpx,
pydantic,
requests,
tenacity,
types-requests,
}:
buildPythonPackage rec {
pname = "retryhttp";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "austind";
repo = "retryhttp";
tag = "release/v${version}";
hash = "sha256-wUz5cC8O//TqlalDoF1KtUCqONnfCShFv3hU4k4fzuM=";
};
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 ];
};
}