Files
2026-07-15 14:04:39 -04:00

42 lines
818 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pytest-asyncio,
pytest-mock,
}:
buildPythonPackage (finalAttrs: {
pname = "circuitbreaker";
version = "2.1.3";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "fabfuel";
repo = "circuitbreaker";
tag = finalAttrs.version;
hash = "sha256-7BpYGhha0PTYzsE9CsN4KxfJW/wm2i6V+uAeamBREBQ=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-mock
];
pythonImportsCheck = [ "circuitbreaker" ];
meta = {
description = "Python Circuit Breaker implementation";
homepage = "https://github.com/fabfuel/circuitbreaker";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
})