evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / stamina / default.nix
blob9597bc54964399fb2d383d71601850572cf3b6ec
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 , hatch-fancy-pypi-readme
6 , hatch-vcs
7 , hatchling
9 , tenacity
10 , typing-extensions
12 , anyio
13 , pytestCheckHook
16 buildPythonPackage rec {
17   pname = "stamina";
18   version = "24.3.0";
19   pyproject = true;
21   src = fetchFromGitHub {
22     owner = "hynek";
23     repo = "stamina";
24     rev = "refs/tags/${version}";
25     hash = "sha256-DasubVqKRhX4CRyKyJ3fIA9Rxmy+kGxkW0pDdu8OPPo=";
26   };
28   nativeBuildInputs = [
29     hatch-fancy-pypi-readme
30     hatch-vcs
31     hatchling
32   ];
34   propagatedBuildInputs = [
35     tenacity
36     typing-extensions
37   ];
39   pythonImportsCheck = [ "stamina" ];
41   nativeCheckInputs = [
42     pytestCheckHook
43     anyio
44   ];
46   meta = with lib; {
47     description = "Production-grade retries for Python";
48     homepage = "https://github.com/hynek/stamina";
49     changelog = "https://github.com/hynek/stamina/blob/${src.rev}/CHANGELOG.md";
50     license = licenses.mit;
51     maintainers = with maintainers; [ mbalatsko ];
52   };