python310Packages.marisa: init at 0.2.6

This commit is contained in:
Robert Schütz 2022-11-25 13:06:44 -08:00
parent e62efc6694
commit 1ea8bf15cb
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, marisa
, swig
}:
buildPythonPackage rec {
pname = "marisa";
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";
license = with lib.licenses; [ bsd2 lgpl21Plus ];
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -5535,6 +5535,10 @@ self: super: with self; {
mariadb = callPackage ../development/python-modules/mariadb { };
marisa = callPackage ../development/python-modules/marisa {
inherit (pkgs) marisa;
};
marisa-trie = callPackage ../development/python-modules/marisa-trie { };
markdown2 = callPackage ../development/python-modules/markdown2 { };