nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 38 lines 717 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "circuitbreaker"; 11 version = "1.3.2"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "fabfuel"; 18 repo = pname; 19 rev = version; 20 sha256 = "sha256-3hFa8dwCso5tj26ek2jMdVBRzu5H3vkdjQlDYw2hSH0="; 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}