13 buildPythonPackage rec {
14 pname = "marisa-trie";
18 disabled = pythonOlder "3.7";
21 pname = "marisa_trie";
23 hash = "sha256-OifECOKu/APg8dJbL/KvuFqsNWj2+iripTtXouh84p0=";
38 substituteInPlace setup.py \
39 --replace "hypothesis==" "hypothesis>="
47 # Don't test packaging
48 "tests/test_packaging.py"
52 # Pins hypothesis==2.0.0 from 2016/01 which complains about
53 # hypothesis.errors.FailedHealthCheck: tests/test_trie.py::[...] uses
54 # the 'tmpdir' fixture, which is reset between function calls but not
55 # between test cases generated by `@given(...)`.
60 pythonImportsCheck = [ "marisa_trie" ];
63 description = "Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library";
65 There are official SWIG-based Python bindings included in C++ library distribution.
66 This package provides alternative Cython-based pip-installable Python bindings.
68 homepage = "https://github.com/kmike/marisa-trie";
69 changelog = "https://github.com/pytries/marisa-trie/blob/${version}/CHANGES.rst";
70 license = licenses.mit;