python3Packages.editdistance-s: init at 1.0.0

This commit is contained in:
Austin Butler 2021-07-01 21:20:57 -07:00
parent d8079260a3
commit 579769535f
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ 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";
};
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 ];
};
}

View File

@ -2245,6 +2245,8 @@ in {
editdistance = callPackage ../development/python-modules/editdistance { };
editdistance-s = callPackage ../development/python-modules/editdistance-s { };
editorconfig = callPackage ../development/python-modules/editorconfig { };
edward = callPackage ../development/python-modules/edward { };