depot/third_party/nixpkgs/pkgs/development/python-modules/rapidfuzz/default.nix
Default email d9e13ed064 Project import generated by Copybara.
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
2021-09-22 23:38:15 +08:00

52 lines
968 B
Nix

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