Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: ty 0.0.46 -> 0.0.49 https://github.com/astral-sh/ty/releases attrpath: ty Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] skipping because derivation has updateScript [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/pardbfl9aalnvs79pgkci7i5b64ira2b-packages.json.drv building '/nix/store/pardbfl9aalnvs79pgkci7i5b64ira2b-packages.json.drv'... Going to be running update for following packages: - ty-0.0.46 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - ty-0.0.46: UPDATING ... - ty-0.0.46: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ty/ty/package.nix b/pkgs/by-name/ty/ty/package.nix index c1a1f061bebe..41db756b4492 100644 --- a/pkgs/by-name/ty/ty/package.nix +++ b/pkgs/by-name/ty/ty/package.nix @@ -17,7 +17,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "ty"; - version = "0.0.46"; + version = "0.0.49"; __structuredAttrs = true; src = fetchFromGitHub { @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage (finalAttrs: { repo = "ty"; tag = finalAttrs.version; fetchSubmodules = true; - hash = "sha256-IZgQduqsQU8wMu0yW3SYypEzAJ0gmDObTJ75xG88xbA="; + hash = "sha256-IKeoskueujGYFjhUd3V7iwKwZjFZqG3OYfe36S6J2aw="; }; # For Darwin platforms, remove the integration test for file notifications, @@ -39,7 +39,7 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoBuildFlags = [ "--package=ty" ]; - cargoHash = "sha256-rSvaYddm5n1qtPRHfY6du0aA1t2TsIqzTPnHQ9NHMP8="; + cargoHash = "sha256-y1sKf+KXya/K+WUiIE357U6DXh/d+AQgj0SQIi1gpUw="; nativeBuildInputs = [ installShellFiles ]; buildInputs = [ rust-jemalloc-sys ]; No auto update branch exists Old version 0.0.46" not present in staging-nixos derivation file with contents: { lib, stdenv, rustPlatform, fetchFromGitHub, # nativeBuildInputs installShellFiles, # buildInputs rust-jemalloc-sys, buildPackages, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "ty"; version = "0.0.49"; __structuredAttrs = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "ty"; tag = finalAttrs.version; fetchSubmodules = true; hash = "sha256-IKeoskueujGYFjhUd3V7iwKwZjFZqG3OYfe36S6J2aw="; }; # For Darwin platforms, remove the integration test for file notifications, # as these tests fail in its sandboxes. postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' rm ${finalAttrs.cargoRoot}/crates/ty/tests/file_watching.rs ''; cargoRoot = "ruff"; buildAndTestSubdir = finalAttrs.cargoRoot; cargoBuildFlags = [ "--package=ty" ]; cargoHash = "sha256-y1sKf+KXya/K+WUiIE357U6DXh/d+AQgj0SQIi1gpUw="; nativeBuildInputs = [ installShellFiles ]; buildInputs = [ rust-jemalloc-sys ]; # `ty`'s tests use `insta-cmd`, which depends on the structure of the `target/` directory, # and also fails to find the environment variable `$CARGO_BIN_EXE_ty`, which leads to tests failing. # Instead, we specify the path ourselves and forgo the lookup. # As the patches occur solely in test code, they have no effect on the packaged `ty` binary itself. # # `stdenv.hostPlatform.rust.cargoShortTarget` is taken from `cargoSetupHook`'s `installPhase`, # which constructs a path as below to reference the built binary. preCheck = '' export CARGO_BIN_EXE_ty="$PWD"/target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/ty ''; cargoTestFlags = [ "--package=ty" # CLI tests; file-watching tests only on Linux platforms "--package=ty_python_semantic" # core type checking tests "--package=ty_test" # test framework tests ]; checkFlags = [ # Flaky: # called `Result::unwrap()` on an `Err` value: Os { code: 26, kind: ExecutableFileBusy, message: "Text file busy" } "--skip=python_environment::ty_environment_and_active_environment" "--skip=python_environment::ty_environment_and_discovered_venv" "--skip=python_environment::ty_environment_is_only_environment" "--skip=python_environment::ty_environment_is_system_not_virtual" "--skip=python_environment::ty_system_environment_and_local_venv" # flaky: unmatched assertion: revealed: Literal[1] "--skip=mdtest::generics/pep695/functions.md" ]; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let emulator = stdenv.hostPlatform.emulator buildPackages; in '' installShellCompletion --cmd ty \ --bash <(${emulator} $out/bin/ty generate-shell-completion bash) \ --fish <(${emulator} $out/bin/ty generate-shell-completion fish) \ --zsh <(${emulator} $out/bin/ty generate-shell-completion zsh) '' ); passthru = { updateScript = nix-update-script { }; }; meta = { description = "Extremely fast Python type checker and language server, written in Rust"; homepage = "https://github.com/astral-sh/ty"; changelog = "https://github.com/astral-sh/ty/blob/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; mainProgram = "ty"; maintainers = with lib.maintainers; [ bengsparks ddogfoodd figsoda GaetanLepage ]; }; })