From 579769535fc97d751659166c26597f892c7cdc13 Mon Sep 17 00:00:00 2001 From: Austin Butler Date: Thu, 1 Jul 2021 21:20:57 -0700 Subject: python3Packages.editdistance-s: init at 1.0.0 --- .../python-modules/editdistance-s/default.nix | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/editdistance-s/default.nix (limited to 'pkgs/development/python-modules/editdistance-s') diff --git a/pkgs/development/python-modules/editdistance-s/default.nix b/pkgs/development/python-modules/editdistance-s/default.nix new file mode 100644 index 00000000000..b3659e0710d --- /dev/null +++ b/pkgs/development/python-modules/editdistance-s/default.nix @@ -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 ]; + }; +} -- cgit 1.4.1