diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/editdistance-s/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/editdistance-s/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/editdistance-s/default.nix b/nixpkgs/pkgs/development/python-modules/editdistance-s/default.nix new file mode 100644 index 000000000000..8d9be707f9b4 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/editdistance-s/default.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +} |