My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/datrie/default.nix

39 lines
724 B

{ 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 ];
};
}