Unverified Commit 69c2f4b8 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

pyrefly: 0.34.0 -> 0.43.1 (#458544)

parents 92f020c0 733d193c
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -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;