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