diff --git a/pkgs/development/python-modules/circuitbreaker/default.nix b/pkgs/development/python-modules/circuitbreaker/default.nix new file mode 100644 index 000000000000..6cf2d37c5973 --- /dev/null +++ b/pkgs/development/python-modules/circuitbreaker/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mock +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "circuitbreaker"; + version = "1.3.2"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "fabfuel"; + repo = pname; + rev = version; + sha256 = "sha256-3hFa8dwCso5tj26ek2jMdVBRzu5H3vkdjQlDYw2hSH0="; + }; + + checkInputs = [ + mock + pytestCheckHook + ]; + + pythonImportsCheck = [ + "circuitbreaker" + ]; + + meta = with lib; { + description = "Python Circuit Breaker implementation"; + homepage = "https://github.com/fabfuel/circuitbreaker"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 03afe1e7fe67..c81b9e8a2df3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1533,6 +1533,8 @@ in { ci-py = callPackage ../development/python-modules/ci-py { }; + circuitbreaker = callPackage ../development/python-modules/circuitbreaker { }; + cirq = callPackage ../development/python-modules/cirq { }; cirq-aqt = callPackage ../development/python-modules/cirq-aqt { };