mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
python312Packages.retry2: init at 0.9.5
Retry decorator https://github.com/eSAMTrade/retry
This commit is contained in:
42
pkgs/development/python-modules/retry2/default.nix
Normal file
42
pkgs/development/python-modules/retry2/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -13673,6 +13673,8 @@ self: super: with self; {
|
||||
|
||||
retry-decorator = callPackage ../development/python-modules/retry-decorator { };
|
||||
|
||||
retry2 = callPackage ../development/python-modules/retry2 { };
|
||||
|
||||
retrying = callPackage ../development/python-modules/retrying { };
|
||||
|
||||
returns = callPackage ../development/python-modules/returns { };
|
||||
|
||||
Reference in New Issue
Block a user