Commit fb679281 authored by bryango's avatar bryango Committed by Jörg Thalheim
Browse files

python310Packages.rapidfuzz: make `numpy` optional

`numpy` is now an _optional_ dependency, which is consistent with
upstream and greatly reduces the closure size (by ~300 MiB).

References:
- Upstream setup.py: https://github.com/maxbachmann/RapidFuzz/blob/main/setup.py



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent f4098e34
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -55,9 +55,9 @@ buildPythonPackage rec {
    "-fno-lto"  # work around https://github.com/NixOS/nixpkgs/issues/19098
  ]);

  propagatedBuildInputs = [
    numpy
  ];
  passthru.optional-dependencies = {
    full = [ numpy ];
  };

  preCheck = ''
    export RAPIDFUZZ_IMPLEMENTATION=cpp