depot/third_party/nixpkgs/pkgs/development/python-modules/rapidfuzz/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

52 lines
968 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, hypothesis
, pandas
, numpy
}:
buildPythonPackage rec {
pname = "rapidfuzz";
version = "1.8.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "RapidFuzz";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-rInlaLWpPKmjihEp0iacg2nASxURGKxmJHH5jr+crM4=";
};
propagatedBuildInputs = [
numpy
];
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 ];
};
}