nixpkgs/pkgs/development/python-modules/pyahocorasick/default.nix
Fabian Affolter 992dc6d08a
Merge pull request #210869 from fabaff/pyahocorasick-bump
python310Packages.pyahocorasick: 2.0.0b1 -> 2.0.0
2023-01-22 12:00:39 +01:00

44 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyahocorasick";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "WojciechMula";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Ugl7gHyubXpxe4aots2e9stLuQAZEWsrlDuAHdSC0SA=";
};
nativeCheckInputs = [
pytestCheckHook
];
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";
changelog = "https://github.com/WojciechMula/pyahocorasick/blob/${version}/CHANGELOG.rst";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}