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: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
f4098e348c
commit
fb67928155
|
@ -55,9 +55,9 @@ buildPythonPackage rec {
|
||||||
"-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098
|
"-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098
|
||||||
]);
|
]);
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
passthru.optional-dependencies = {
|
||||||
numpy
|
full = [ numpy ];
|
||||||
];
|
};
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export RAPIDFUZZ_IMPLEMENTATION=cpp
|
export RAPIDFUZZ_IMPLEMENTATION=cpp
|
||||||
|
|
Loading…
Reference in a new issue