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