2021-07-05 21:36:19 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, pytestCheckHook
|
|
|
|
, hypothesis
|
|
|
|
}:
|
2018-04-03 12:23:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datrie";
|
2021-07-05 21:36:19 +01:00
|
|
|
version = "0.8.2";
|
2018-04-03 12:23:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-05 21:36:19 +01:00
|
|
|
sha256 = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
|
2018-04-03 12:23:05 +01:00
|
|
|
};
|
|
|
|
|
2021-07-05 21:36:19 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
2019-04-10 19:16:23 +01:00
|
|
|
];
|
|
|
|
|
2021-07-05 21:36:19 +01:00
|
|
|
buildInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-04-03 12:23:05 +01:00
|
|
|
|
2021-07-05 21:36:19 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace '"pytest-runner", ' ""
|
2018-11-30 08:17:56 +00:00
|
|
|
'';
|
|
|
|
|
2021-07-05 21:36:19 +01:00
|
|
|
pythonImportsCheck = [ "datrie" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-03 12:23:05 +01:00
|
|
|
description = "Super-fast, efficiently stored Trie for Python";
|
|
|
|
homepage = "https://github.com/kmike/datrie";
|
2021-07-05 21:36:19 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2018-04-03 12:23:05 +01:00
|
|
|
maintainers = with maintainers; [ lewo ];
|
|
|
|
};
|
|
|
|
}
|