diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix index f12e2916ad0f..f9f97f51325c 100644 --- a/pkgs/development/python-modules/devtools/default.nix +++ b/pkgs/development/python-modules/devtools/default.nix @@ -25,6 +25,11 @@ buildPythonPackage rec { hash = "sha256-1HFbNswdKa/9cQX0Gf6lLW1V5Kt/N4X6/5kQDdzp1Wo="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'asttokens>=2.0.0,<3.0.0' 'asttokens>=2.0.0' \ + ''; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ @@ -45,6 +50,7 @@ buildPythonPackage rec { "test_multiple_not_verbose" # Sensitive to interpreter output "test_simple" + "test_expr_render" ]; disabledTestPaths = [