about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ukkonen/default.nix
blob: 5ea0930d7d890b9ca98cacb5677947c25bd19506 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
  ];

  nativeCheckInputs = [
    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 ];
  };
}