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