summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ukkonen/default.nix
blob: 4de244797b5940fd2caceff14c3c718426785532 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cffi,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "ukkonen";
  version = "1.0.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "asottile";
    repo = "ukkonen";
    rev = "v${version}";
    sha256 = "jG6VP/P5sadrdrmneH36/ExSld9blyMAAG963QS9+p0=";
  };

  nativeBuildInputs = [ cffi ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "ukkonen" ];

  meta = {
    description = "Python implementation of bounded Levenshtein distance (Ukkonen)";
    homepage = "https://github.com/asottile/ukkonen";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}