Merge sublime4: 4189 -> 4192; sublime4-dev: 4188 -> 4191 (#378651)
[NixPkgs.git] / pkgs / development / python-modules / pyahocorasick / default.nix
blobe3879501572b0112d8b70f089b32dd5e4e9b1aea
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "pyahocorasick";
11   version = "2.1.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "WojciechMula";
18     repo = pname;
19     tag = version;
20     hash = "sha256-SCIgu0uEjiSUiIP0WesJG+y+3ZqFBfI5PdgUzviOVrs=";
21   };
23   nativeCheckInputs = [ pytestCheckHook ];
25   pythonImportsCheck = [ "ahocorasick" ];
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   };