nixpkgs/pkgs/development/python-modules/python-backoff/default.nix
2026-05-23 15:42:08 +02:00

42 lines
949 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
pytest-asyncio,
pytestCheckHook,
requests,
responses,
}:
buildPythonPackage (finalAttrs: {
pname = "python-backoff";
version = "2.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "python-backoff";
repo = "backoff";
tag = "v${finalAttrs.version}";
hash = "sha256-Os20Gz+uWaEdUPPF9/tT7LNxbmN0W/tuzVZa3H+ZG2A=";
};
build-system = [ hatchling ];
pythonImportsCheck = [ "backoff" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
requests
responses
];
meta = {
changelog = "https://github.com/python-backoff/backoff/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Python library providing function decorators for configurable backoff and retry";
homepage = "https://github.com/python-backoff/backoff";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})