blob: 56e5636622b81f9dee17b3020ab96f74b459b044 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyahocorasick";
version = "1.4.1";
src = fetchFromGitHub {
owner = "WojciechMula";
repo = pname;
rev = version;
sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
};
patches = [
# Use proper temporary directory on Hydra
(fetchpatch {
url = "https://github.com/WojciechMula/pyahocorasick/commit/b6549e06f3cced7ffdf4d1b587cd7de12041f495.patch";
sha256 = "sha256-v3J/0aIPOnBhLlJ18r/l7O0MckqLOCtcmqIS9ZegaSI=";
})
];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "unittests.py" ];
pythonImportsCheck = [ "ahocorasick" ];
meta = with lib; {
description = "Python module implementing Aho-Corasick algorithm";
longDescription = ''
This Python module is a fast and memory efficient library for exact or
approximate multi-pattern string search meaning that you can find multiple
key strings occurrences at once in some input text.
'';
homepage = "https://github.com/WojciechMula/pyahocorasick";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
|