blob: c76e36e6b21f41736f15c60ab4386bb37559b2d5 (
about) (
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.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
};
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 = with lib; {
description = "Super-fast, efficiently stored Trie for Python";
homepage = "https://github.com/kmike/datrie";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ lewo ];
};
}
|