mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
50 lines
964 B
Nix
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 ];
|
|
};
|
|
}
|