2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
marisa,
|
|
|
|
swig,
|
2022-11-27 09:42:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "marisa";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-11-27 09:42:12 +00:00
|
|
|
inherit (marisa) src version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ swig ];
|
|
|
|
|
|
|
|
buildInputs = [ marisa ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make -C bindings swig-python
|
|
|
|
|
|
|
|
cd bindings/python
|
|
|
|
'';
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "marisa" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for marisa";
|
|
|
|
homepage = "https://github.com/s-yata/marisa-trie";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with lib.licenses; [
|
|
|
|
bsd2
|
|
|
|
lgpl21Plus
|
|
|
|
];
|
2022-11-27 09:42:12 +00:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|