3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.justbackoff: init at 0.6.0

This commit is contained in:
Fabian Affolter 2021-11-17 09:31:27 +01:00
parent 75b6455294
commit 98f26c237d
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "justbackoff";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alexferl";
repo = pname;
rev = "v${version}";
sha256 = "097j6jxgl4b3z46x9y9z10643vnr9v831vhagrxzrq6nviil2z6l";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner>=5.2" ""
'';
pythonImportsCheck = [
"justbackoff"
];
meta = with lib; {
description = "Simple backoff algorithm in Python";
homepage = "https://github.com/alexferl/justbackoff";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4093,6 +4093,8 @@ in {
jupytext = callPackage ../development/python-modules/jupytext { };
justbackoff = callPackage ../development/python-modules/justbackoff { };
jwcrypto = callPackage ../development/python-modules/jwcrypto { };
jxmlease = callPackage ../development/python-modules/jxmlease { };