nixpkgs/pkgs/development/python-modules/circuitbreaker/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

39 lines
736 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "circuitbreaker";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fabfuel";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-l0ASt9CQmgJmWpRrghElbff/gaNOmxNh+Wj0C0p4jE0=";
};
nativeCheckInputs = [
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 ];
};
}