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