From 3fa223ce45c019d14c9efe268e80c4cf1cb0f62f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Sep 2025 13:44:11 +0200 Subject: [PATCH] python313Packages.stamina: modernize --- .../python-modules/stamina/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/stamina/default.nix b/pkgs/development/python-modules/stamina/default.nix index e05ab044df99..f21ad8209c6a 100644 --- a/pkgs/development/python-modules/stamina/default.nix +++ b/pkgs/development/python-modules/stamina/default.nix @@ -1,18 +1,15 @@ { lib, + anyio, buildPythonPackage, + dirty-equals, fetchFromGitHub, - hatch-fancy-pypi-readme, hatch-vcs, hatchling, - - dirty-equals, + pytestCheckHook, tenacity, typing-extensions, - - anyio, - pytestCheckHook, }: buildPythonPackage rec { @@ -27,25 +24,25 @@ buildPythonPackage rec { hash = "sha256-TehGqR3vbjLNByHZE2+Ytq52dpEpiL6+7TRUKwXcC1M="; }; - nativeBuildInputs = [ + build-system = [ hatch-fancy-pypi-readme hatch-vcs hatchling ]; - propagatedBuildInputs = [ + dependencies = [ tenacity typing-extensions ]; - pythonImportsCheck = [ "stamina" ]; - nativeCheckInputs = [ + anyio dirty-equals pytestCheckHook - anyio ]; + pythonImportsCheck = [ "stamina" ]; + meta = with lib; { description = "Production-grade retries for Python"; homepage = "https://github.com/hynek/stamina";