Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 925 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "pyahocorasick"; 9 version = "1.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "WojciechMula"; 13 repo = pname; 14 rev = version; 15 sha256 = "0plm9x2gziayjsl7flsgn1z8qx88c9vqm4fs1wq7dv7fr188liik"; 16 }; 17 18 checkInputs = [ pytestCheckHook ]; 19 20 pytestFlagsArray = [ "unittests.py" ]; 21 pythonImportsCheck = [ "ahocorasick" ]; 22 23 meta = with lib; { 24 description = "Python module implementing Aho-Corasick algorithm"; 25 longDescription = '' 26 This Python module is a fast and memory efficient library for exact or 27 approximate multi-pattern string search meaning that you can find multiple 28 key strings occurrences at once in some input text. 29 ''; 30 homepage = "https://github.com/WojciechMula/pyahocorasick"; 31 license = with licenses; [ bsd3 ]; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}