1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 cffi,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "ukkonen";
12 version = "1.0.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "asottile";
19 repo = "ukkonen";
20 rev = "v${version}";
21 sha256 = "jG6VP/P5sadrdrmneH36/ExSld9blyMAAG963QS9+p0=";
22 };
23
24 nativeBuildInputs = [ cffi ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "ukkonen" ];
29
30 meta = with lib; {
31 description = "Python implementation of bounded Levenshtein distance (Ukkonen)";
32 homepage = "https://github.com/asottile/ukkonen";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}