1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 future,
5 lib,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "ahocorapy";
12 version = "1.6.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "abusix";
17 repo = "ahocorapy";
18 tag = version;
19 hash = "sha256-ynVkDnrZ12dpNPoKfUdw0/X06aORFkmXFMVH9u0Payo=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 future
26 ];
27
28 pythonImportsCheck = [ "ahocorapy" ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pytestFlagsArray = [
35 "tests/ahocorapy_test.py"
36 ];
37
38 meta = {
39 changelog = "https://github.com/abusix/ahocorapy/blob/${src.tag}/CHANGELOG";
40 description = "Pure python Aho-Corasick library";
41 homepage = "https://github.com/abusix/ahocorapy";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45}