Repository navigation
python3Packages.bad_pr: jsp #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,110 @@ | ||||||||||||||||
| { | ||||||||||||||||
| lib, | ||||||||||||||||
| stdenv, | ||||||||||||||||
| python3Packages, | ||||||||||||||||
| fetchFromGitHub, | ||||||||||||||||
| # tests | ||||||||||||||||
| uv, | ||||||||||||||||
| versionCheckHook, | ||||||||||||||||
| writableTmpDirAsHomeHook, | ||||||||||||||||
| }: | ||||||||||||||||
| python3Packages.buildPythonApplication rec { | ||||||||||||||||
| pname = "mistral-vibe"; | ||||||||||||||||
| version = "2.4.2"; | ||||||||||||||||
| pyproject = true; | ||||||||||||||||
|
|
||||||||||||||||
| src = fetchFromGitHub { | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||||
| owner = "mistralai"; | ||||||||||||||||
| repo = "mistral-vibe"; | ||||||||||||||||
| rev = "095a67b0c73b512c1f4ff23ec8c7135276c8f3cc"; | ||||||||||||||||
| hash = "sha256-r/9kMhkoLfj9oEifFun/bpIQYEouqm9YEiWZVk07+S8="; | ||||||||||||||||
| }; | ||||||||||||||||
|
|
||||||||||||||||
| nativeBuildInputs = with python3Packages; [ | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to modern conventions, use 'build-system' instead of 'nativeBuildInputs'.
Suggested change
|
||||||||||||||||
| editables | ||||||||||||||||
| hatch-vcs | ||||||||||||||||
| hatchling | ||||||||||||||||
| ]; | ||||||||||||||||
|
|
||||||||||||||||
| pythonRelaxDeps = [ | ||||||||||||||||
| "agent-client-protocol" | ||||||||||||||||
| "cryptography" | ||||||||||||||||
| "gitpython" | ||||||||||||||||
| "mistralai" | ||||||||||||||||
| "pydantic-settings" | ||||||||||||||||
| "zstandard" | ||||||||||||||||
| ]; | ||||||||||||||||
| propagatedBuildInputs = with python3Packages; [ | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to modern conventions, use 'dependencies' instead of 'propagatedBuildInputs'.
Suggested change
|
||||||||||||||||
| agent-client-protocol | ||||||||||||||||
| anyio | ||||||||||||||||
| cachetools | ||||||||||||||||
| cryptography | ||||||||||||||||
| gitpython | ||||||||||||||||
| giturlparse | ||||||||||||||||
| google-auth | ||||||||||||||||
| httpx | ||||||||||||||||
| keyring | ||||||||||||||||
| mcp | ||||||||||||||||
| markdownify | ||||||||||||||||
| mistralai | ||||||||||||||||
| packaging | ||||||||||||||||
| pexpect | ||||||||||||||||
| pydantic | ||||||||||||||||
| pydantic-settings | ||||||||||||||||
| pyperclip | ||||||||||||||||
| python-dotenv | ||||||||||||||||
| pyyaml | ||||||||||||||||
| requests | ||||||||||||||||
| rich | ||||||||||||||||
| textual | ||||||||||||||||
| textual-speedups | ||||||||||||||||
| tomli-w | ||||||||||||||||
| tree-sitter | ||||||||||||||||
| tree-sitter-bash | ||||||||||||||||
| watchfiles | ||||||||||||||||
| zstandard | ||||||||||||||||
| ]; | ||||||||||||||||
|
|
||||||||||||||||
| pythonImportsCheck = ["vibe"]; | ||||||||||||||||
|
|
||||||||||||||||
| nativeCheckInputs = [ | ||||||||||||||||
| python3Packages.pytest-asyncio | ||||||||||||||||
| python3Packages.pytest-textual-snapshot | ||||||||||||||||
| python3Packages.pytest-xdist | ||||||||||||||||
| python3Packages.pytestCheckHook | ||||||||||||||||
| python3Packages.respx | ||||||||||||||||
| uv | ||||||||||||||||
| versionCheckHook | ||||||||||||||||
| writableTmpDirAsHomeHook | ||||||||||||||||
| ]; | ||||||||||||||||
| versionCheckKeepEnvironment = ["HOME"]; | ||||||||||||||||
|
|
||||||||||||||||
| disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a comment explaining why the tests are disabled.
Suggested change
|
||||||||||||||||
| "test_rebuilds_index_when_mass_change_threshold_is_exceeded" | ||||||||||||||||
| "test_updates_index_incrementally_by_default" | ||||||||||||||||
| "test_updates_index_on_file_creation" | ||||||||||||||||
| "test_updates_index_on_file_deletion" | ||||||||||||||||
| "test_updates_index_on_file_rename" | ||||||||||||||||
| "test_updates_index_on_folder_rename" | ||||||||||||||||
| "test_watcher_toggle_flow_off_on_off" | ||||||||||||||||
| ]; | ||||||||||||||||
|
|
||||||||||||||||
| disabledTestPaths = [ | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a comment explaining why the test paths are disabled.
Suggested change
|
||||||||||||||||
| "tests/snapshots/" | ||||||||||||||||
| "tests/e2e/" | ||||||||||||||||
| "tests/acp/test_acp.py" | ||||||||||||||||
| ]; | ||||||||||||||||
|
|
||||||||||||||||
| meta = { | ||||||||||||||||
| description = "YOLO is an amazing and powerful tool that lets you easily train models for all your computer vision tasks."; | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||||
| homepage = "https://github.com/mistralai/mistral-vibe"; | ||||||||||||||||
| changelog = "https://github.com/mistralai/mistral-vibe/blob/${version}/CHANGELOG.md"; | ||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||||
| license = lib.licenses.asl20; | ||||||||||||||||
| maintainers = with lib.maintainers; [ | ||||||||||||||||
| GaetanLepage | ||||||||||||||||
| shikanime | ||||||||||||||||
| mana-byte | ||||||||||||||||
| ]; | ||||||||||||||||
| mainProgram = "vibe"; | ||||||||||||||||
| }; | ||||||||||||||||
| } | ||||||||||||||||
There was a problem hiding this comment.
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.