https://bugzilla.redhat.com/show_bug.cgi?id=2213169
--- Comment #2 from Miro Hrončok mhroncok@redhat.com --- # PACKAGE_VERSION is part of the remove_hatch-nodejs-version.patch sed -i "s/PACKAGE_VERSION/%{version}/" pyproject.toml
Pro-tip: See the %writevars macro from https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/macros.f...
tl;dr:
1) Use @@VERSION@@ in the patch 2) Replace the sed with %writevars -f pyproject.toml