Loading pkgs/by-name/pr/prek/package.nix +34 −4 Original line number Diff line number Diff line Loading @@ -5,21 +5,22 @@ git, uv, python312, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "prek"; version = "0.2.20"; version = "0.2.30"; src = fetchFromGitHub { owner = "j178"; repo = "prek"; tag = "v${finalAttrs.version}"; hash = "sha256-AZyYjgUd2dGnBUHwo/cPagFE8IJmzsgMLwebTypLAgE="; hash = "sha256-IqFUJNFs7a/M9IUNEwW40EZTAh+6a5Ov37xg5c9iwRc="; }; cargoHash = "sha256-a1yBu4MuyR0veBSQAUdaE/9rB04i6RVJ/NdWNmpRzmM="; cargoHash = "sha256-KOpQ3P9cmcWYT3bPKtKpzHPagX4b9hH0EiWGpt98NnE="; nativeCheckInputs = [ git Loading @@ -45,7 +46,13 @@ rustPlatform.buildRustPackage (finalAttrs: { useNextest = true; # some python tests use uv, which in turn needs python env = { UV_PYTHON = "${python312}/bin/python"; UV_NO_MANAGED_PYTHON = true; UV_SYSTEM_PYTHON = true; }; cargoTestFlags = [ "--no-fail-fast" ]; checkFlags = map (t: "--skip ${t}") [ # these tests require internet access Loading @@ -67,6 +74,7 @@ rustPlatform.buildRustPackage (finalAttrs: { "rust::remote_hooks" "rust::remote_hooks_with_lib_deps" "unsupported::unsupported_language" "remote_hook_non_workspace" # "meta_hooks" "reuse_env" "docker::docker" Loading Loading @@ -145,8 +153,30 @@ rustPlatform.buildRustPackage (finalAttrs: { "run_in_non_git_repo" # depends on locale "init_nonexistent_repo" # https://github.com/astral-sh/uv/issues/8635 "alternate_config_file" "basic_discovery" "color" "cookiecutter_template_directories_are_skipped" "empty_entry" "git_dir_respected" "git_env_vars_not_leaked_to_pip_install" "gitignore_respected" "invalid_entry" "local_python_hook" "orphan_projects" "run_with_selectors" "run_with_stdin_closed" "show_diff_on_failure" "submodule_discovery" "workspace_install_hooks" # We don't have git info; we run versionCheckHook instead "version_info" ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; passthru.updateScript = nix-update-script { }; meta = { Loading Loading
pkgs/by-name/pr/prek/package.nix +34 −4 Original line number Diff line number Diff line Loading @@ -5,21 +5,22 @@ git, uv, python312, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "prek"; version = "0.2.20"; version = "0.2.30"; src = fetchFromGitHub { owner = "j178"; repo = "prek"; tag = "v${finalAttrs.version}"; hash = "sha256-AZyYjgUd2dGnBUHwo/cPagFE8IJmzsgMLwebTypLAgE="; hash = "sha256-IqFUJNFs7a/M9IUNEwW40EZTAh+6a5Ov37xg5c9iwRc="; }; cargoHash = "sha256-a1yBu4MuyR0veBSQAUdaE/9rB04i6RVJ/NdWNmpRzmM="; cargoHash = "sha256-KOpQ3P9cmcWYT3bPKtKpzHPagX4b9hH0EiWGpt98NnE="; nativeCheckInputs = [ git Loading @@ -45,7 +46,13 @@ rustPlatform.buildRustPackage (finalAttrs: { useNextest = true; # some python tests use uv, which in turn needs python env = { UV_PYTHON = "${python312}/bin/python"; UV_NO_MANAGED_PYTHON = true; UV_SYSTEM_PYTHON = true; }; cargoTestFlags = [ "--no-fail-fast" ]; checkFlags = map (t: "--skip ${t}") [ # these tests require internet access Loading @@ -67,6 +74,7 @@ rustPlatform.buildRustPackage (finalAttrs: { "rust::remote_hooks" "rust::remote_hooks_with_lib_deps" "unsupported::unsupported_language" "remote_hook_non_workspace" # "meta_hooks" "reuse_env" "docker::docker" Loading Loading @@ -145,8 +153,30 @@ rustPlatform.buildRustPackage (finalAttrs: { "run_in_non_git_repo" # depends on locale "init_nonexistent_repo" # https://github.com/astral-sh/uv/issues/8635 "alternate_config_file" "basic_discovery" "color" "cookiecutter_template_directories_are_skipped" "empty_entry" "git_dir_respected" "git_env_vars_not_leaked_to_pip_install" "gitignore_respected" "invalid_entry" "local_python_hook" "orphan_projects" "run_with_selectors" "run_with_stdin_closed" "show_diff_on_failure" "submodule_discovery" "workspace_install_hooks" # We don't have git info; we run versionCheckHook instead "version_info" ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; passthru.updateScript = nix-update-script { }; meta = { Loading