python3Packages.invocations: fix build

This commit is contained in:
Sigmanificient
2026-04-25 00:13:01 +02:00
parent 7e72886296
commit bc90586d19
2 changed files with 15 additions and 10 deletions
@@ -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
@@ -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",