git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.editdistance-s: init at 1.0.0
commit579769535fc97d751659166c26597f892c7cdc13 authorAustin Butler <austinabutler@gmail.com> dateThu 1 Jul 2021, 21:20 (5 years ago) parentd807926
2 files changed+34
pkgs/development/python-modules/editdistance-s/default.nix+32 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/editdistance-s/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, cffi
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "editdistance-s";
10+ version = "1.0.0";
11+
12+
13+ src = fetchFromGitHub {
14+ owner = "asottile";
15+ repo = pname;
16+ rev = "v${version}";
17+ sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
18+ };
19+
20+ propagatedBuildInputs = [ cffi ];
21+
22+ checkInputs = [ pytestCheckHook ];
23+
24+ pythonImportsCheck = [ "editdistance_s" ];
25+
26+ meta = with lib; {
27+ description = "Fast implementation of the edit distance (Levenshtein distance)";
28+ homepage = "https://github.com/asottile/editdistance-s";
29+ license = with licenses; [ mit ];
30+ maintainers = with maintainers; [ austinbutler ];
31+ };
32+}
pkgs/top-level/python-packages.nix+2
@@ -2245,6 +2245,8 @@ in {
22452245
22462246 editdistance = callPackage ../development/python-modules/editdistance { };
22472247
2248+ editdistance-s = callPackage ../development/python-modules/editdistance-s { };
2249+
22482250 editorconfig = callPackage ../development/python-modules/editorconfig { };
22492251
22502252 edward = callPackage ../development/python-modules/edward { };