Skip to content

python3Packages.bad_pr: jsp - #2

Open
mana-byte wants to merge 1 commit into
masterfrom
bad_pr_2
Open

python3Packages.bad_pr: jsp#2
mana-byte wants to merge 1 commit into
masterfrom
bad_pr_2

Conversation

@mana-byte

Copy link
Copy Markdown
Owner

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@mana-byte mana-byte left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test message

Review has been Auto generated using manabyte/nixpkgs-review-quality

versionCheckHook,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace 'rec' with 'finalAttrs' to use a more modern and efficient way to inherit attributes from stdenv in Nix.

Suggested change
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs {

meta = {
description = "YOLO is an amazing and powerful tool that lets you easily train models for all your computer vision tasks.";
homepage = "https://github.com/mistralai/mistral-vibe";
changelog = "https://github.com/mistralai/mistral-vibe/blob/${version}/CHANGELOG.md";

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the reference to 'version' to use 'finalAttrs.version' to maintain recursiveness while using finalAttrs.

Suggested change
changelog = "https://github.com/mistralai/mistral-vibe/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/mistralai/mistral-vibe/blob/${finalAttrs.version}/CHANGELOG.md";

];

meta = {
description = "YOLO is an amazing and powerful tool that lets you easily train models for all your computer vision tasks.";

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meta descriptions must be a single capitalized sentence that avoids starting with articles or the package name, omits punctuation, provides factual information, and excludes subjective language.

Suggested change
description = "YOLO is an amazing and powerful tool that lets you easily train models for all your computer vision tasks.";
description = "Tool for training models for computer vision tasks";

version = "2.4.2";
pyproject = true;

src = fetchFromGitHub {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is generally better to use tag than rev in fetchFromGitHub function if the repo has an up to date tag.

Suggested change
src = fetchFromGitHub {
src = fetchFromGitHub {
owner = "mistralai";
repo = "mistral-vibe";
tag = "v${finalAttrs.version}";
hash = "sha256-r/9kMhkoLfj9oEifFun/bpIQYEouqm9YEiWZVk07+S8=";
};

hash = "sha256-r/9kMhkoLfj9oEifFun/bpIQYEouqm9YEiWZVk07+S8=";
};

nativeBuildInputs = with python3Packages; [

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to modern conventions, use 'build-system' instead of 'nativeBuildInputs'.

Suggested change
nativeBuildInputs = with python3Packages; [
build-system = with python3Packages; [

"pydantic-settings"
"zstandard"
];
propagatedBuildInputs = with python3Packages; [

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to modern conventions, use 'dependencies' instead of 'propagatedBuildInputs'.

Suggested change
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [

];
versionCheckKeepEnvironment = ["HOME"];

disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment explaining why the tests are disabled.

Suggested change
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# Tests disabled on Darwin due to platform-specific issues

"test_watcher_toggle_flow_off_on_off"
];

disabledTestPaths = [

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment explaining why the test paths are disabled.

Suggested change
disabledTestPaths = [
disabledTestPaths = [
# Tests disabled due to specific issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant