rapidfuzz-cpp: add passthru.tests.levenshtein#283915
Conversation
illustris
left a comment
There was a problem hiding this comment.
Not a blocker for merging, but it might better to do
passthru.tests.levenshtein = python3Packages.levenshtein.override {
rapidfuzz-cpp = finalAttrs.finalPackage;
};
Why so? Isn't the point to test the |
bc55ae7 to
14a72a3
Compare
I am okay with either. I have simply reverted the last commit and now the code is equivalent to the suggestion here, albeit less idiomatic. |
`python3Packages.levenshtein` crucially depends on `rapidfuzz-cpp`, so we add it to `passthru.tests` to prevent future breakage. Co-authored-by: Robert Schütz <github@dotlambda.de>
6bde094 to
450e082
Compare
|
Done! Tested locally, looks good! @dotlambda |
Depends on what you're trying to test. If you are just trying to test whether That being said, going back and forth on this change isn't worth blocking this PR. It can be merged with either version. |
As suggested by @dotlambda in #283726 (comment).
Description of changes
python3Packages.levenshteincrucially depends onrapidfuzz-cpp, so we add it topassthru.teststo prevent future breakage. The patch is targeted at master, as it should not cause any rebuild when the former staging-next is fully cached.ofborg all green: https://github.com/NixOS/nixpkgs/pull/283915/checks?check_run_id=20887684631
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.