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