summary refs log tree commit diff
path: root/pkgs/development/python-modules/editdistance-s/default.nix
blob: 548da09b993d3ef3dd5c22b7b9a1134d7866dd4e (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, cffi
}:

buildPythonPackage rec {
  pname = "editdistance-s";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "asottile";
    repo = pname;
    rev = "v${version}";
    sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
  };

  propagatedNativeBuildInputs = [ cffi ];

  propagatedBuildInputs = [ cffi ];

  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "editdistance_s" ];

  meta = with lib; {
    description = "Fast implementation of the edit distance (Levenshtein distance)";
    homepage = "https://github.com/asottile/editdistance-s";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ austinbutler ];
  };
}