python311Packages.lexilang: init at 1.0.1, python311Packages.libretranslate: 1.5.2 -> 1.5.5#282824
Closed
fabaff wants to merge 3 commits intoNixOS:masterfrom
Closed
python311Packages.lexilang: init at 1.0.1, python311Packages.libretranslate: 1.5.2 -> 1.5.5#282824fabaff wants to merge 3 commits intoNixOS:masterfrom
fabaff wants to merge 3 commits intoNixOS:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
|
Translation works, but language detection is broken, logs: |
13 tasks
13 tasks
Contributor
|
Package added in upstream, Update this PR? |
e08e9d6 to
4f0d14e
Compare
Member
Author
Seems to work for me. But no expert on $ ./result/bin/libretranslate --host 0.0.0.0
Updating language models
Found 86 models
Downloading Albanian → English (1.9) ...
Downloading Arabic → English (1.0) ...
[....] |
Member
Author
|
Result of 6 packages built:
|
Contributor
Request: Logs: |
Contributor
|
Update lexilang: diff --git a/pkgs/development/python-modules/lexilang/default.nix b/pkgs/development/python-modules/lexilang/default.nix
index 5bd64ae8b760..5e75dac8848d 100644
--- a/pkgs/development/python-modules/lexilang/default.nix
+++ b/pkgs/development/python-modules/lexilang/default.nix
@@ -24,6 +24,10 @@ buildPythonPackage rec {
setuptools
];
+ postBuild = ''
+ ${python.interpreter} test.py
+ '';
+
checkPhase = ''
runHook preCheck
${python.interpreter} test.py
@@ -34,6 +38,12 @@ buildPythonPackage rec {
"lexilang"
];
+ postInstall = ''
+ cp -r $src/dictionaries/ $out/lib/python3.11/site-packages/
+ mkdir $out/lib/python3.11/site-packages/lexilang/data
+ cp $TMP/source/lexilang/data/words.pickle $out/lib/python3.11/site-packages/lexilang/data/words.pickle
+ '';
+ |
Contributor
|
Any ideas on how to fix it? |
13 tasks
Contributor
|
is there progress? |
Member
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of changes
Fix build (https://hydra.nixos.org/build/246735645)
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.