From 733d193c29ccb32d4ba2f9b1e244781e1ced1225 Mon Sep 17 00:00:00 2001 From: cybardev <50134239+cybardev@users.noreply.github.com> Date: Tue, 4 Nov 2025 14:07:27 -0400 Subject: [PATCH] pyrefly: 0.34.0 -> 0.43.1 --- pkgs/by-name/py/pyrefly/package.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/py/pyrefly/package.nix b/pkgs/by-name/py/pyrefly/package.nix index f4e731a685f0..41c354c1b52b 100644 --- a/pkgs/by-name/py/pyrefly/package.nix +++ b/pkgs/by-name/py/pyrefly/package.nix @@ -8,23 +8,34 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "pyrefly"; - version = "0.34.0"; + version = "0.43.1"; src = fetchFromGitHub { owner = "facebook"; repo = "pyrefly"; tag = finalAttrs.version; - hash = "sha256-HPPDsvWEFfh/GNMUPiVjQr28YBBs2DACBGM3cxo5Nx4="; + hash = "sha256-KVeuDK5f0VIMnhAMJvGMJ08tHOuuIBDPrTqO1YjsHXI="; }; buildAndTestSubdir = "pyrefly"; - cargoHash = "sha256-46kcoBG/PWwf8VdlvLNzEhfYRTmmKi/uTjwFkl7Wozg="; + cargoHash = "sha256-Cc3bLBP9SxMbXQmJJVIfItOzy0iUkxLMgk4fbzNP1yw="; buildInputs = [ rust-jemalloc-sys ]; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; + # redirect tests writing to /tmp + preCheck = '' + export TMPDIR=$(mktemp -d) + ''; + + checkFlags = [ + # FIX: tracking on https://github.com/facebook/pyrefly/issues/1667 + "--skip=test::lsp::lsp_interaction::configuration::test_pythonpath_change" + "--skip=test::lsp::lsp_interaction::configuration::test_workspace_pythonpath_ignored_when_set_in_config_file" + ]; + # requires unstable rust features env.RUSTC_BOOTSTRAP = 1;