python3Packages.ukkonen: init at 1.0.1

This commit is contained in:
Fabian Affolter 2021-11-19 22:25:01 +01:00
parent 51712daede
commit e21280234b
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cffi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ukkonen";
version = "1.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
sha256 = "jG6VP/P5sadrdrmneH36/ExSld9blyMAAG963QS9+p0=";
};
nativeBuildInputs = [
cffi
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ukkonen"
];
meta = with lib; {
description = "Python implementation of bounded Levenshtein distance (Ukkonen)";
homepage = "https://github.com/asottile/ukkonen";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9582,6 +9582,8 @@ in {
ujson = callPackage ../development/python-modules/ujson { };
ukkonen = callPackage ../development/python-modules/ukkonen { };
ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };
umalqurra = callPackage ../development/python-modules/umalqurra { };