2021-01-23 21:51:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyahocorasick";
|
2021-06-30 08:14:22 +01:00
|
|
|
version = "1.4.1";
|
2021-01-23 21:51:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WojciechMula";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-30 08:14:22 +01:00
|
|
|
sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
|
2021-01-23 21:51:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "unittests.py" ];
|
|
|
|
pythonImportsCheck = [ "ahocorasick" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module implementing Aho-Corasick algorithm";
|
|
|
|
longDescription = ''
|
|
|
|
This Python module is a fast and memory efficient library for exact or
|
|
|
|
approximate multi-pattern string search meaning that you can find multiple
|
|
|
|
key strings occurrences at once in some input text.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/WojciechMula/pyahocorasick";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|