From b5cb6b27f202fc417f9fe78e09af45621816a53c Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 22 May 2026 18:13:49 -0300 Subject: [PATCH] python3Packages.smp: pin pyproject.toml version Upstream uses `poetry-version-plugin` with `source = "git-tag"` to derive the version. Tarball builds have no git tree, so the version falls back to `"0"`, which breaks downstream version-pin checks (smpclient required a `pythonRelaxDeps = [ "smp" ]` workaround). Substitute the version in `pyproject.toml` instead. Assisted-by: Claude Code (claude-opus-4-7) --- pkgs/development/python-modules/smp/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/smp/default.nix b/pkgs/development/python-modules/smp/default.nix index 8ccfdc865738..cdae250e0a2a 100644 --- a/pkgs/development/python-modules/smp/default.nix +++ b/pkgs/development/python-modules/smp/default.nix @@ -22,6 +22,11 @@ buildPythonPackage rec { hash = "sha256-dATsVGG0b5SBZh7R7NT1deJFDRYi7BwtWzT7/QPjkJw="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'version = "0"' 'version = "${version}"' + ''; + build-system = [ poetry-core ];