1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "circuitbreaker"; 11 version = "1.4.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "fabfuel"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 sha256 = "sha256-l0ASt9CQmgJmWpRrghElbff/gaNOmxNh+Wj0C0p4jE0="; 21 }; 22 23 checkInputs = [ 24 mock 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ 29 "circuitbreaker" 30 ]; 31 32 meta = with lib; { 33 description = "Python Circuit Breaker implementation"; 34 homepage = "https://github.com/fabfuel/circuitbreaker"; 35 license = with licenses; [ bsd3 ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}