From 450e082a81caa5569e07d2c2de63dd6ea7fc8993 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Fri, 26 Jan 2024 11:32:25 +0800 Subject: [PATCH] rapidfuzz-cpp: add passthru.tests.levenshtein MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `python3Packages.levenshtein` crucially depends on `rapidfuzz-cpp`, so we add it to `passthru.tests` to prevent future breakage. Co-authored-by: Robert Schütz --- pkgs/development/libraries/rapidfuzz-cpp/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/rapidfuzz-cpp/default.nix b/pkgs/development/libraries/rapidfuzz-cpp/default.nix index 2668025bcbe1..f24da2c899f1 100644 --- a/pkgs/development/libraries/rapidfuzz-cpp/default.nix +++ b/pkgs/development/libraries/rapidfuzz-cpp/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , cmake , catch2_3 +, python3Packages }: stdenv.mkDerivation (finalAttrs: { @@ -33,6 +34,13 @@ stdenv.mkDerivation (finalAttrs: { catch2_3 ]; + passthru = { + tests = { + /** `python3Packages.levenshtein` crucially depends on `rapidfuzz-cpp` */ + inherit (python3Packages) levenshtein; + }; + }; + meta = { description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance"; homepage = "https://github.com/maxbachmann/rapidfuzz-cpp";