python3Packages.rapidfuzz: init at 1.3.3
This commit is contained in:
parent
f8d6e28f7d
commit
57497a9a41
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, hypothesis
|
||||||
|
, pandas
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "rapidfuzz";
|
||||||
|
version = "1.3.3";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "maxbachmann";
|
||||||
|
repo = "RapidFuzz";
|
||||||
|
rev = "v${version}";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
sha256 = "1k28mycf945zp5kkdm4anjqac8ysmp0pabyjg96xww8hnlwmqcnf";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7100,6 +7100,8 @@ in {
|
||||||
|
|
||||||
random2 = callPackage ../development/python-modules/random2 { };
|
random2 = callPackage ../development/python-modules/random2 { };
|
||||||
|
|
||||||
|
rapidfuzz = callPackage ../development/python-modules/rapidfuzz { };
|
||||||
|
|
||||||
rarfile = callPackage ../development/python-modules/rarfile {
|
rarfile = callPackage ../development/python-modules/rarfile {
|
||||||
inherit (pkgs) libarchive;
|
inherit (pkgs) libarchive;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue