python39Packages.setuptools-scm: roll back tomli for < 3.11 support (#393122)

This commit is contained in:
Arne Keller
2025-03-30 14:12:06 +02:00
committed by GitHub
@@ -28,6 +28,11 @@ buildPythonPackage rec {
hash = "sha256-oYOWobwCGcl00adGErEfnc4NW9ix3FXGX2rH/WCejCg=";
};
postPatch = if (pythonOlder "3.11") then ''
substituteInPlace pyproject.toml \
--replace-fail 'tomli<=2.0.2' 'tomli'
'' else null;
build-system = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
dependencies = [