1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "justbackoff"; 11 version = "0.6.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "alexferl"; 18 repo = "justbackoff"; 19 rev = "v${version}"; 20 sha256 = "097j6jxgl4b3z46x9y9z10643vnr9v831vhagrxzrq6nviil2z6l"; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "pytest-runner>=5.2" "" 28 ''; 29 30 pythonImportsCheck = [ "justbackoff" ]; 31 32 meta = with lib; { 33 description = "Simple backoff algorithm in Python"; 34 homepage = "https://github.com/alexferl/justbackoff"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}