forked from mirrors/nixpkgs
python3Packages.justbackoff: init at 0.6.0
This commit is contained in:
parent
75b6455294
commit
98f26c237d
41
pkgs/development/python-modules/justbackoff/default.nix
Normal file
41
pkgs/development/python-modules/justbackoff/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue