-
-
Notifications
You must be signed in to change notification settings - Fork 18k
gdtoolkit_4: init at 4.2.2 #291040
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
Merged
Merged
gdtoolkit_4: init at 4.2.2 #291040
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| { lib | ||
| , python3 | ||
| , fetchFromGitHub | ||
| }: | ||
|
|
||
| let | ||
| python = python3.override { | ||
| packageOverrides = self: super: { | ||
| lark = super.lark.overridePythonAttrs (old: rec { | ||
| # gdtoolkit needs exactly this lark version | ||
| version = "1.1.9"; | ||
| src = fetchFromGitHub { | ||
| owner = "lark-parser"; | ||
| repo = "lark"; | ||
| rev = version; | ||
| hash = "sha256-vDu+VPAXONY8J+A6oS7EiMeOMgzGms0nWpE+DKI1MVU="; | ||
| fetchSubmodules = true; | ||
| }; | ||
| patches = [ ]; | ||
| }); | ||
| }; | ||
| }; | ||
| in | ||
| python.pkgs.buildPythonApplication rec { | ||
| pname = "gdtoolkit"; | ||
| version = "4.2.2"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "Scony"; | ||
| repo = "godot-gdscript-toolkit"; | ||
| rev = version; | ||
| hash = "sha256-SvEKKuDnfxV+5AArg5ssrQzgIwRITdek4KYEs3d0n4Y="; | ||
| }; | ||
|
|
||
| disabled = python.pythonOlder "3.7"; | ||
|
|
||
| propagatedBuildInputs = with python.pkgs; [ | ||
| docopt | ||
| lark | ||
| pyyaml | ||
| setuptools | ||
| ]; | ||
|
|
||
| doCheck = true; | ||
|
|
||
| nativeCheckInputs = with python.pkgs; [ | ||
| pytestCheckHook | ||
| hypothesis | ||
| ]; | ||
|
|
||
| preCheck = '' | ||
| # The tests want to run the installed executables | ||
| export PATH=$out/bin:$PATH | ||
|
|
||
| # gdtoolkit tries to write cache variables to $HOME/.cache | ||
| export HOME=$TMP | ||
| ''; | ||
|
|
||
| # The tests are not working on NixOS | ||
| disabledTestPaths = [ | ||
| "tests/generated/test_expression_parsing.py" | ||
| "tests/gdradon/test_executable.py" | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ "gdtoolkit" "gdtoolkit.formatter" "gdtoolkit.linter" "gdtoolkit.parser" ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Independent set of tools for working with Godot's GDScript - parser, linter and formatter"; | ||
| homepage = "https://github.com/Scony/godot-gdscript-toolkit"; | ||
| license = licenses.mit; | ||
| maintainers = with maintainers; [ squarepear ]; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
whats the justification for now having this toplevel attribute ?
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.
Like with the package name, I followed how this was implemented for Godot 3 and 4.
nixpkgs/pkgs/top-level/aliases.nix
Line 327 in 614b461