git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #128938 from austinbutler/identify-2210
commit036dc0c709650e0c833822307af801f576d67273 authorSandro <sandro.jaeckel@gmail.com> dateTue 6 Jul 2021, 03:03 (5 years ago) parent57e93ed270c54d
3 files changed+37−4
pkgs/development/python-modules/editdistance-s/default.nix+31 pkgs/development/python-modules/identify/default.nix+4−4 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/editdistance-s/default.nixnew file+31
@@ -0,0 +1,31 @@
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+ src = fetchFromGitHub {
13+ owner = "asottile";
14+ repo = pname;
15+ rev = "v${version}";
16+ sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg";
17+ };
18+
19+ propagatedBuildInputs = [ cffi ];
20+
21+ checkInputs = [ pytestCheckHook ];
22+
23+ pythonImportsCheck = [ "editdistance_s" ];
24+
25+ meta = with lib; {
26+ description = "Fast implementation of the edit distance (Levenshtein distance)";
27+ homepage = "https://github.com/asottile/editdistance-s";
28+ license = with licenses; [ mit ];
29+ maintainers = with maintainers; [ austinbutler ];
30+ };
31+}
pkgs/development/python-modules/identify/default.nix+4−4
@@ -2,23 +2,23 @@
22, buildPythonPackage
33, fetchFromGitHub
44, pytestCheckHook
5−, editdistance
5+, editdistance-s
66}:
77
88buildPythonPackage rec {
99 pname = "identify";
10− version = "1.6.1";
10+ version = "2.2.10";
1111
1212
1313 src = fetchFromGitHub {
1414 owner = "pre-commit";
1515 repo = pname;
1616 rev = "v${version}";
17− sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm";
17+ sha256 = "017xcwm8m42a1v3v0fs8v3m2sga97rx9a7vk0cb2g14777f4w4si";
1818 };
1919
2020 checkInputs = [
21− editdistance
21+ editdistance-s
2222 pytestCheckHook
2323 ];
2424
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 { };