summary refs log tree commit diff
path: root/pkgs/development/python-modules/marisa/default.nix
blob: 1117ba958fa4b8bfbda00661e354ad72bc38de6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildPythonPackage, fetchFromGitHub, marisa, swig }:

buildPythonPackage rec {
  pname = "marisa";
  version = "1.3.40";

  src = fetchFromGitHub {
    owner = "s-yata";
    repo  = "marisa-trie";
    rev   = "59e410597981475bae94d9d9eb252c1d9790dc2f";
    sha256 = "0z4bf55np08q3cbi6gvj3cpw3zp8kf2d0jq6k74pjk066m7rapbb";
  };

  nativeBuildInputs = [ swig marisa ];
  buildinputs = [ marisa ];

  sourceRoot = "${src.name}/bindings/python";

  meta = with stdenv.lib; {
    description = "Python binding for marisa package (do not confuse with marisa-trie python bindings)";
    homepage    = https://github.com/s-yata/marisa-trie;
    license     = with licenses; [ bsd2 lgpl2 ];
    maintainers = with maintainers; [ vanzef ];
  };
}