mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
40 lines
724 B
Nix
40 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 ];
|
|
};
|
|
}
|