at 25.11-pre 39 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "pyahocorasick"; 11 version = "2.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "WojciechMula"; 18 repo = pname; 19 tag = version; 20 hash = "sha256-SCIgu0uEjiSUiIP0WesJG+y+3ZqFBfI5PdgUzviOVrs="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "ahocorasick" ]; 26 27 meta = with lib; { 28 description = "Python module implementing Aho-Corasick algorithm"; 29 longDescription = '' 30 This Python module is a fast and memory efficient library for exact or 31 approximate multi-pattern string search meaning that you can find multiple 32 key strings occurrences at once in some input text. 33 ''; 34 homepage = "https://github.com/WojciechMula/pyahocorasick"; 35 changelog = "https://github.com/WojciechMula/pyahocorasick/blob/${version}/CHANGELOG.rst"; 36 license = with licenses; [ bsd3 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}