2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, marisa, swig
|
2019-03-08 20:37:17 +00:00
|
|
|
, isPy3k
|
|
|
|
}:
|
2018-01-30 11:27:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "marisa";
|
|
|
|
version = "1.3.40";
|
|
|
|
|
2019-03-08 20:37:17 +00:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
2018-01-30 11:27:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "s-yata";
|
|
|
|
repo = "marisa-trie";
|
2019-03-08 20:37:17 +00:00
|
|
|
rev = "8dba9850b89d7828ebf33b8ab84df2b54d31260b";
|
|
|
|
sha256 = "0pkp9fggk53lxlicfwrskgx33qplc4v6njbavlnz4x4z63zd4933";
|
2018-01-30 11:27:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ swig marisa ];
|
2019-03-08 20:37:17 +00:00
|
|
|
buildInputs = [ marisa ];
|
2018-01-30 11:27:38 +00:00
|
|
|
|
|
|
|
sourceRoot = "${src.name}/bindings/python";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-30 11:27:38 +00:00
|
|
|
description = "Python binding for marisa package (do not confuse with marisa-trie python bindings)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/s-yata/marisa-trie";
|
2018-01-30 11:27:38 +00:00
|
|
|
license = with licenses; [ bsd2 lgpl2 ];
|
|
|
|
maintainers = with maintainers; [ vanzef ];
|
|
|
|
};
|
|
|
|
}
|