1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, pytestCheckHook
6, hypothesis
7}:
8
9buildPythonPackage rec {
10 pname = "datrie";
11 version = "0.8.2";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
16 };
17
18 nativeBuildInputs = [
19 cython
20 ];
21
22 buildInputs = [
23 hypothesis
24 pytestCheckHook
25 ];
26
27 postPatch = ''
28 substituteInPlace setup.py --replace '"pytest-runner", ' ""
29 '';
30
31 pythonImportsCheck = [ "datrie" ];
32
33 meta = with lib; {
34 description = "Super-fast, efficiently stored Trie for Python";
35 homepage = "https://github.com/kmike/datrie";
36 license = licenses.lgpl21Plus;
37 maintainers = with maintainers; [ lewo ];
38 };
39}