depot/third_party/nixpkgs/pkgs/development/python-modules/retry2/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

42 lines
848 B
Nix

{
lib,
buildPythonPackage,
decorator,
fetchFromGitHub,
pbr,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "retry2";
version = "0.9.5";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "eSAMTrade";
repo = "retry";
rev = "refs/tags/${version}";
hash = "sha256-RxOEekkmMRl2OQW2scFWbMQiFXcH0sbd+k9R8uul0uY=";
};
env.PBR_VERSION = version;
build-system = [ pbr ];
dependencies = [ decorator ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "retry" ];
meta = {
description = "Retry decorator";
homepage = "https://github.com/eSAMTrade/retry";
changelog = "https://github.com/eSAMTrade/retry/blob/${src.rev}/ChangeLog";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}