depot/third_party/nixpkgs/pkgs/development/python-modules/rapidfuzz/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

47 lines
916 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, hypothesis
, pandas
}:
buildPythonPackage rec {
pname = "rapidfuzz";
version = "1.5.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "RapidFuzz";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-Omo9ActReimYDK9dARG0s32Qq61neDELRechbnwRfwU=";
};
checkInputs = [
pytestCheckHook
hypothesis
pandas
];
disabledTests = [
"test_levenshtein_block" # hypothesis data generation too slow
];
pythonImportsCheck = [
"rapidfuzz.fuzz"
"rapidfuzz.string_metric"
"rapidfuzz.process"
"rapidfuzz.utils"
];
meta = with lib; {
description = "Rapid fuzzy string matching";
homepage = "https://github.com/maxbachmann/rapidfuzz";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}