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