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