evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyahocorasick / default.nix
blob51ec19016c7763ddccfd25a115452c0abefbb530
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     rev = "refs/tags/${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   };