nixpkgs/pkgs/development/python-modules/pyahocorasick/default.nix
2022-05-12 16:54:00 +02:00

42 lines
980 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyahocorasick";
version = "2.0.0b1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "WojciechMula";
repo = pname;
rev = version;
hash = "sha256-APpL99kOwzIQjePvRDeJ0FDm1kjBi6083JMKuBqtaRk=";
};
checkInputs = [
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";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}