fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
46 lines
816 B
Nix
46 lines
816 B
Nix
{
|
|
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", ' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
cython
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|