nixpkgs/pkgs/development/python-modules/backoff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
759 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pytest-asyncio
, responses
}:
2020-07-18 00:19:26 +00:00
buildPythonPackage rec {
pname = "backoff";
version = "2.1.2";
format = "pyproject";
2020-07-18 00:19:26 +00:00
src = fetchFromGitHub {
owner = "litl";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI=";
2020-07-18 00:19:26 +00:00
};
nativeBuildInputs = [
poetry-core
];
2020-07-18 00:19:26 +00:00
checkInputs = [
pytest-asyncio
pytestCheckHook
responses
];
2020-07-18 00:19:26 +00:00
pythonImportsCheck = [
"backoff"
];
2020-07-18 00:19:26 +00:00
meta = with lib; {
description = "Function decoration for backoff and retry";
homepage = "https://github.com/litl/backoff";
license = licenses.mit;
maintainers = with maintainers; [ chkno ];
};
}