1{ lib 2, buildPythonPackage 3, marisa 4, swig 5}: 6 7buildPythonPackage rec { 8 pname = "marisa"; 9 inherit (marisa) src version; 10 11 nativeBuildInputs = [ swig ]; 12 13 buildInputs = [ marisa ]; 14 15 preBuild = '' 16 make -C bindings swig-python 17 18 cd bindings/python 19 ''; 20 21 # upstream has no tests 22 doCheck = false; 23 24 pythonImportsCheck = [ "marisa" ]; 25 26 meta = { 27 description = "Python bindings for marisa"; 28 homepage = "https://github.com/s-yata/marisa-trie"; 29 license = with lib.licenses; [ bsd2 lgpl21Plus ]; 30 maintainers = with lib.maintainers; [ dotlambda ]; 31 }; 32}