python39Packages.setuptools-scm: roll back tomli for < 3.11 support (#393122)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user