diff --git a/pkgs/development/python-modules/invocations/default.nix b/pkgs/development/python-modules/invocations/default.nix index 1a8ee27a6528..d0603e412008 100644 --- a/pkgs/development/python-modules/invocations/default.nix +++ b/pkgs/development/python-modules/invocations/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + build, blessed, fetchFromGitHub, invoke, @@ -13,13 +14,14 @@ pytest-relaxed, pytest-mock, icecream, + setuptools, pip, }: buildPythonPackage rec { pname = "invocations"; version = "4.0.2"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "pyinvoke"; @@ -31,11 +33,14 @@ buildPythonPackage rec { patches = [ ./replace-blessings-with-blessed.patch ]; postPatch = '' - substituteInPlace setup.py \ - --replace "semantic_version>=2.4,<2.7" "semantic_version" + substituteInPlace pyproject.toml \ + --replace-fail "semantic_version>=2.4,<2.7" "semantic_version" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ + build blessed invoke releases diff --git a/pkgs/development/python-modules/invocations/replace-blessings-with-blessed.patch b/pkgs/development/python-modules/invocations/replace-blessings-with-blessed.patch index fe03889e8555..625c60478e5f 100644 --- a/pkgs/development/python-modules/invocations/replace-blessings-with-blessed.patch +++ b/pkgs/development/python-modules/invocations/replace-blessings-with-blessed.patch @@ -13,14 +13,14 @@ index 54322c3..81ac173 100644 from invoke import Collection, task, Exit diff --git a/setup.py b/setup.py index 78ae28b..c78a74c 100644 ---- a/setup.py -+++ b/setup.py -@@ -16,7 +16,7 @@ requirements = [ +--- a/pyproject.toml 2026-04-25 00:07:29.730867343 +0200 ++++ b/pyproject.toml 2026-04-25 00:08:23.736953102 +0200 +@@ -16,7 +16,7 @@ # time if missing), but that got hairy fast, and these are all # pure-Python packages, so it shouldn't be a huge burden for users to # obtain them. - "blessings>=1.6", + "blessed", - "releases>=1.6", - "semantic_version>=2.4,<2.7", - "tabulate>=0.7.5", + "build>=1.3", + # For envs that don't actually have pip - we use some of its tooling atm. + "pip~=25.2",