1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestrunner 5, pytest 6, hypothesis 7}: 8 9buildPythonPackage rec { 10 pname = "marisa-trie"; 11 version = "0.7.5"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "c73bc25d868e8c4ea7aa7f1e19892db07bba2463351269b05340ccfa06eb2baf"; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.py \ 20 --replace "hypothesis==" "hypothesis>=" 21 ''; 22 23 nativeBuildInputs = [ pytestrunner ]; 24 25 checkInputs = [ pytest hypothesis ]; 26 27 meta = with lib; { 28 description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) based on marisa-trie C++ library"; 29 longDescription = "There are official SWIG-based Python bindings included in C++ library distribution; this package provides alternative Cython-based pip-installable Python bindings."; 30 homepage = https://github.com/kmike/marisa-trie; 31 license = licenses.mit; 32 maintainers = with maintainers; [ ixxie ]; 33 }; 34}