1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pytest-asyncio 7, responses 8}: 9 10buildPythonPackage rec { 11 pname = "backoff"; 12 version = "2.1.2"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "litl"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 checkInputs = [ 27 pytest-asyncio 28 pytestCheckHook 29 responses 30 ]; 31 32 pythonImportsCheck = [ 33 "backoff" 34 ]; 35 36 meta = with lib; { 37 description = "Function decoration for backoff and retry"; 38 homepage = "https://github.com/litl/backoff"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ chkno ]; 41 }; 42}