Merge pull request #308344 from ViZiD/phunspell

python312Packages.phunspell: init at 0.1.6
This commit is contained in:
OTABI Tomoya 2024-05-06 13:06:13 +09:00 committed by GitHub
commit 63593818f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
spylls,
}:
buildPythonPackage rec {
pname = "phunspell";
version = "0.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "dvwright";
repo = "phunspell";
rev = "refs/tags/v${version}";
hash = "sha256-TlO9Ccr2iRN+s3JV+3P36RF9oFY32fj+24sKslZZCVk=";
};
patches = [
(fetchpatch {
name = "fix-package-data-warning.patch";
url = "https://github.com/dvwright/phunspell/commit/70a0ee8af8442797e03916cea31637c21e6d32d9.patch";
hash = "sha256-kSaKHd7dVJM8+2dqxjs26Hv0feNXAXXymUE97DNVBFM=";
})
(fetchpatch {
name = "replace-description-file-deprecated-option.patch";
url = "https://github.com/dvwright/phunspell/commit/331c593b486cebe1a9b72befa568de9b51033f15.patch";
hash = "sha256-gdYfeG1vBtjnDDCjmg+ZSuToqVe0hrzB3RIqBLGNvBQ=";
})
];
build-system = [ setuptools ];
dependencies = [ spylls ];
# for tests need lots of RAM, just skip...
doCheck = false;
pythonImportsCheck = [ "phunspell" ];
meta = with lib; {
description = "Pure Python spell checker, wrapping spylls a port of Hunspell";
homepage = "https://github.com/dvwright/phunspell";
changelog = "https://github.com/dvwright/phunspell/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ vizid ];
};
}

View File

@ -9730,6 +9730,8 @@ self: super: with self; {
phpserialize = callPackage ../development/python-modules/phpserialize { };
phunspell = callPackage ../development/python-modules/phunspell { };
phx-class-registry = callPackage ../development/python-modules/phx-class-registry { };
pi1wire = callPackage ../development/python-modules/pi1wire { };