at master 928 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 wheel, 7 cython, 8 pytestCheckHook, 9 hypothesis, 10}: 11 12buildPythonPackage rec { 13 pname = "datrie"; 14 version = "0.8.3"; 15 format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-6gIa1MiovxTginHHhypiKqOZpRD5gSloJQkcfKBDboA="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace '"pytest-runner", ' "" 25 ''; 26 27 dependencies = [ 28 setuptools 29 wheel 30 cython 31 ]; 32 33 # workaround https://github.com/pytries/datrie/issues/101 34 env.CFLAGS = "-Wno-error=incompatible-pointer-types"; 35 36 nativeCheckInputs = [ 37 hypothesis 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "datrie" ]; 42 43 meta = with lib; { 44 description = "Super-fast, efficiently stored Trie for Python"; 45 homepage = "https://github.com/kmike/datrie"; 46 license = licenses.lgpl21Plus; 47 maintainers = with maintainers; [ lewo ]; 48 }; 49}