summary refs log tree commit diff
path: root/pkgs/development/python-modules/editdistance-s
diff options
context:
space:
mode:
authorAustin Butler <austinabutler@gmail.com>2021-07-01 21:20:57 -0700
committerAustin Butler <austinabutler@gmail.com>2021-07-01 21:20:57 -0700
commit579769535fc97d751659166c26597f892c7cdc13 (patch)
treeaa02c7375a22b980ad39cd3bb8fb334eb531eacd /pkgs/development/python-modules/editdistance-s
parentd8079260a3028ae3221d7a5467443ee3a9edd2b8 (diff)
downloadnixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar.gz
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar.bz2
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar.lz
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar.xz
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.tar.zst
nixpkgs-579769535fc97d751659166c26597f892c7cdc13.zip
python3Packages.editdistance-s: init at 1.0.0
Diffstat (limited to 'pkgs/development/python-modules/editdistance-s')
-rw-r--r--pkgs/development/python-modules/editdistance-s/default.nix32
1 files changed, 32 insertions, 0 deletions
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 ];
+  };
+}