nixpkgs/pkgs/development/python-modules/datrie/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
724 B
Nix
Raw Normal View History

2021-07-05 21:36:19 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, cython
, pytestCheckHook
, hypothesis
}:
buildPythonPackage rec {
pname = "datrie";
2021-07-05 21:36:19 +01:00
version = "0.8.2";
src = fetchPypi {
inherit pname version;
2021-07-05 21:36:19 +01:00
sha256 = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
};
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
];
2021-07-05 21:36:19 +01:00
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner", ' ""
'';
2021-07-05 21:36:19 +01:00
pythonImportsCheck = [ "datrie" ];
meta = with lib; {
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;
maintainers = with maintainers; [ lewo ];
};
}