mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
python3Packages.retryhttp: init at 1.3.1
This commit is contained in:
committed by
Sergei Volkov
parent
ba61bcfe8c
commit
f96cdc8f97
50
pkgs/development/python-modules/retryhttp/default.nix
Normal file
50
pkgs/development/python-modules/retryhttp/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user