depot/third_party/nixpkgs/pkgs/development/python-modules/stamina/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
958 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatch-fancy-pypi-readme
, hatch-vcs
, hatchling
, tenacity
, typing-extensions
, anyio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "stamina";
version = "24.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "hynek";
repo = "stamina";
rev = version;
hash = "sha256-gn8kbLLj+wMPtIwnsOdKDEhBsLApkl3K6mf/bQT3qT8=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatch-vcs
hatchling
];
propagatedBuildInputs = [
tenacity
typing-extensions
];
pythonImportsCheck = [ "stamina" ];
nativeCheckInputs = [
pytestCheckHook
anyio
];
meta = with lib; {
description = "Production-grade retries for Python";
homepage = "https://github.com/hynek/stamina";
changelog = "https://github.com/hynek/stamina/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}