fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
39 lines
789 B
Nix
39 lines
789 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "circuitbreaker";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabfuel";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jaDCMGCZZu3STluYeHDNgdEPf2DNq7bXJ0LPV3JZdk0=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "circuitbreaker" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Circuit Breaker implementation";
|
|
homepage = "https://github.com/fabfuel/circuitbreaker";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|