1{ lib, buildPythonPackage, fetchFromGitHub, marisa, swig 2, isPy3k 3}: 4 5buildPythonPackage rec { 6 pname = "marisa"; 7 version = "1.3.40"; 8 9 disabled = isPy3k; 10 11 src = fetchFromGitHub { 12 owner = "s-yata"; 13 repo = "marisa-trie"; 14 rev = "8dba9850b89d7828ebf33b8ab84df2b54d31260b"; 15 sha256 = "0pkp9fggk53lxlicfwrskgx33qplc4v6njbavlnz4x4z63zd4933"; 16 }; 17 18 nativeBuildInputs = [ swig marisa ]; 19 buildInputs = [ marisa ]; 20 21 sourceRoot = "${src.name}/bindings/python"; 22 23 meta = with lib; { 24 description = "Python binding for marisa package (do not confuse with marisa-trie python bindings)"; 25 homepage = "https://github.com/s-yata/marisa-trie"; 26 license = with licenses; [ bsd2 lgpl2 ]; 27 maintainers = with maintainers; [ vanzef ]; 28 }; 29}