1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, cffi
6}:
7
8buildPythonPackage rec {
9 pname = "editdistance-s";
10 version = "1.0.0";
11
12 src = fetchFromGitHub {
13 owner = "asottile";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
17 };
18
19 propagatedNativeBuildInputs = [ cffi ];
20
21 propagatedBuildInputs = [ cffi ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "editdistance_s" ];
26
27 meta = with lib; {
28 description = "Fast implementation of the edit distance (Levenshtein distance)";
29 homepage = "https://github.com/asottile/editdistance-s";
30 license = with licenses; [ mit ];
31 maintainers = with maintainers; [ austinbutler ];
32 };
33}