depot/third_party/nixpkgs/pkgs/development/python-modules/datrie/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

39 lines
724 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cython
, pytestCheckHook
, hypothesis
}:
buildPythonPackage rec {
pname = "datrie";
version = "0.8.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
};
nativeBuildInputs = [
cython
];
buildInputs = [
hypothesis
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner", ' ""
'';
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 ];
};
}