Merge pull request #128938 from austinbutler/identify-2210
This commit is contained in:
commit
036dc0c709
31
pkgs/development/python-modules/editdistance-s/default.nix
Normal file
31
pkgs/development/python-modules/editdistance-s/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2,23 +2,23 @@
|
|||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, editdistance
|
||||
, editdistance-s
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "identify";
|
||||
version = "1.6.1";
|
||||
version = "2.2.10";
|
||||
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pre-commit";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm";
|
||||
sha256 = "017xcwm8m42a1v3v0fs8v3m2sga97rx9a7vk0cb2g14777f4w4si";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
editdistance
|
||||
editdistance-s
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
|
|
@ -2245,6 +2245,8 @@ in {
|
|||
|
||||
editdistance = callPackage ../development/python-modules/editdistance { };
|
||||
|
||||
editdistance-s = callPackage ../development/python-modules/editdistance-s { };
|
||||
|
||||
editorconfig = callPackage ../development/python-modules/editorconfig { };
|
||||
|
||||
edward = callPackage ../development/python-modules/edward { };
|
||||
|
|
Loading…
Reference in a new issue