Files
nixpkgs/pkgs/development/python-modules/backoff/default.nix
T
2025-12-10 18:42:31 +01:00

45 lines
852 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pytest-asyncio_0,
responses,
}:
buildPythonPackage rec {
pname = "backoff";
version = "2.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "litl";
repo = "backoff";
tag = "v${version}";
hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
};
patches = [
# https://github.com/litl/backoff/pull/220
./python314-compat.patch
];
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
pytest-asyncio_0
pytestCheckHook
responses
];
pythonImportsCheck = [ "backoff" ];
meta = {
description = "Function decoration for backoff and retry";
homepage = "https://github.com/litl/backoff";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chkno ];
};
}