python3Packages.ruff: adjust maturin patch

This commit is contained in:
Benjamin Sparks
2026-03-19 22:04:21 +01:00
parent 5a66391625
commit cccb848abc
@@ -29,7 +29,7 @@ buildPythonPackage {
# to avoid rebuilding the ruff binary for every active python package set.
+ ''
substituteInPlace pyproject.toml \
--replace-fail 'requires = ["maturin>=1.9,<2.0"]' 'requires = ["hatchling"]' \
--replace-fail 'requires = ["maturin>=1.9.3,<2.0"]' 'requires = ["hatchling"]' \
--replace-fail 'build-backend = "maturin"' 'build-backend = "hatchling.build"'
cat >> pyproject.toml <<EOF