Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 651 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, }: 2 3buildPythonPackage rec { 4 pname = "backoff"; 5 version = "1.10.0"; 6 7 src = fetchFromGitHub { 8 owner = "litl"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1jj0l6pjx747d2yyvnzd3qbm4qr73sq6cc56dhvd8wqfbp5279x0"; 12 }; 13 14 format = "pyproject"; 15 16 nativeBuildInputs = [ poetry ]; 17 18 checkInputs = [ pytestCheckHook pytest-asyncio ]; 19 20 meta = with lib; { 21 description = "Function decoration for backoff and retry"; 22 homepage = "https://github.com/litl/backoff"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ chkno ]; 25 }; 26}