From 8a2f9b24143cd5e0ef7aaf7d2f38ba8174e87b4d Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Thu, 25 Jan 2024 17:38:44 +0800 Subject: [PATCH] python311Packages.levenshtein: fetch submodules This allows access to the vendored dependency `rapidfuzz-cpp`, which is older (2.0.0) than the nixpkgs version (3.0.0). The nixpkgs `rapidfuzz-cpp` is kept in buildInputs, which enables us to seamlessly switch back to it when levenshtein catches up in the future. --- pkgs/development/python-modules/levenshtein/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/levenshtein/default.nix b/pkgs/development/python-modules/levenshtein/default.nix index 037ae3cda69f..2a297571b3f1 100644 --- a/pkgs/development/python-modules/levenshtein/default.nix +++ b/pkgs/development/python-modules/levenshtein/default.nix @@ -22,7 +22,8 @@ buildPythonPackage rec { owner = "maxbachmann"; repo = "Levenshtein"; rev = "refs/tags/v${version}"; - hash = "sha256-O39Xe26WKAGcv6DEvwuOL8NZJBem5SYZDX1TPAY7/uA="; + hash = "sha256-xQimslz/G6nf2uYerLSaRAK5gvmfDmWTzEx/fh+nqg0="; + fetchSubmodules = true; ## for vendored `rapidfuzz-cpp` }; nativeBuildInputs = [