blob: 6ed3d6f4bf3900255a1e5ad33d4d724d25f77643 (
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
26
27
28
29
30
31
32
33
|
{ lib
, buildPythonPackage
, marisa
, swig
}:
buildPythonPackage rec {
pname = "marisa";
format = "setuptools";
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 ];
};
}
|