mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-30 12:14:55 +00:00
42 lines
818 B
Nix
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 ];
|
|
};
|
|
})
|