python311Packages.symspellpy: init at 6.7.6 (#297516)
* python311Packages.symspellpy: init at 6.7.6 * python311Packages.symspellpy: 6.7.6 -> 6.7.7
This commit is contained in:
parent
9ad9869542
commit
0187893c97
70
pkgs/development/python-modules/symspellpy/default.nix
Normal file
70
pkgs/development/python-modules/symspellpy/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
|
||||
, pythonOlder
|
||||
|
||||
, pytestCheckHook
|
||||
|
||||
, setuptools
|
||||
|
||||
# for testing
|
||||
, numpy
|
||||
, importlib-resources
|
||||
|
||||
# requirements
|
||||
, editdistpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "symspellpy";
|
||||
version = "6.7.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
patches = [
|
||||
# patch for fix tests
|
||||
(fetchpatch {
|
||||
name = "fix-pkg-resources-deprecation-warning.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/mammothb/symspellpy/pull/150.patch";
|
||||
hash = "sha256-mdUJMrcPv5zczIRP+8u5vicz2IE1AUN3YP0+zg3jqZg=";
|
||||
})
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mammothb";
|
||||
repo = "symspellpy";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-D8xdMCy4fSff3nuS2sD2QHWk0869AlFDE+lFRvayYDQ=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
editdistpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
numpy
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"symspellpy"
|
||||
"symspellpy.symspellpy"
|
||||
];
|
||||
|
||||
meta = with lib;
|
||||
{
|
||||
description = "Python port of SymSpell v6.7.1, which provides much higher speed and lower memory consumption";
|
||||
homepage = "https://github.com/mammothb/symspellpy";
|
||||
changelog = "https://github.com/mammothb/symspellpy/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ vizid ];
|
||||
};
|
||||
}
|
|
@ -14391,6 +14391,8 @@ self: super: with self; {
|
|||
|
||||
sympy = callPackage ../development/python-modules/sympy { };
|
||||
|
||||
symspellpy = callPackage ../development/python-modules/symspellpy { };
|
||||
|
||||
syncedlyrics = callPackage ../development/python-modules/syncedlyrics { };
|
||||
|
||||
syncer = callPackage ../development/python-modules/syncer { };
|
||||
|
|
Loading…
Reference in New Issue
Block a user