1{ stdenv, buildPythonPackage, fetchPypi
2, cython, pytest, pytestrunner, hypothesis }:
3
4buildPythonPackage rec {
5 pname = "datrie";
6 version = "0.7.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs";
11 };
12
13 nativeBuildInputs = [ cython ];
14 buildInputs = [ pytest pytestrunner hypothesis ];
15
16 # recompile pxd and pyx for python37
17 # https://github.com/pytries/datrie/issues/52
18 preBuild = ''
19 ./update_c.sh
20 '';
21
22 meta = with stdenv.lib; {
23 description = "Super-fast, efficiently stored Trie for Python";
24 homepage = "https://github.com/kmike/datrie";
25 license = licenses.lgpl2;
26 maintainers = with maintainers; [ lewo ];
27 };
28}