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