python3Packages.editdistance: init at 0.5.3
This commit is contained in:
parent
cf19d3f2ac
commit
7471ce31fe
36
pkgs/development/python-modules/editdistance/default.nix
Normal file
36
pkgs/development/python-modules/editdistance/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, cython
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "editdistance";
|
||||
version = "0.5.3";
|
||||
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "roy-ht";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0vk8vz41p2cs7s7zbaw3cnw2jnvy5rhy525xral68dh14digpgsd";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
preBuild = ''
|
||||
cythonize --inplace editdistance/bycython.pyx
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "editdistance" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of the edit distance (Levenshtein distance)";
|
||||
homepage = "https://github.com/roy-ht/editdistance";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -2043,6 +2043,8 @@ in {
|
||||
|
||||
ed25519 = callPackage ../development/python-modules/ed25519 { };
|
||||
|
||||
editdistance = callPackage ../development/python-modules/editdistance { };
|
||||
|
||||
editorconfig = callPackage ../development/python-modules/editorconfig { };
|
||||
|
||||
edward = callPackage ../development/python-modules/edward { };
|
||||
|
Loading…
Reference in New Issue
Block a user