Merge pull request #294847 from ViZiD/ssg

python312Packages.ssg: init at 0.0.8
This commit is contained in:
OTABI Tomoya 2024-04-28 20:36:33 +09:00 committed by GitHub
commit 2eba10a50a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
python3,
unittestCheckHook,
setuptools,
fire,
python-crfsuite,
tqdm,
}:
buildPythonPackage {
pname = "ssg";
version = "0.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "ponrawee";
repo = "ssg";
rev = "d1b811ef4f8ac08ba1db839f426ba6b6a8e0eb38";
hash = "sha256-GBZzVDDfKOTnbcrIxhFRiNHXN2pSNU3T9RvUytJ068w=";
};
patches = [
(fetchpatch {
name = "fix-deprecation-warnings-and-bump-version";
url = "https://patch-diff.githubusercontent.com/raw/ponrawee/ssg/pull/10.patch";
hash = "sha256-4O1fpI0FBUG/3RN+PAi7I8vpgYmPPL5ZMXhoZUFsQy8=";
})
];
build-system = [ setuptools ];
dependencies = [
fire
python-crfsuite
tqdm
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "ssg" ];
postInstall = "rm -rf $out/${python3.sitePackages}/scripts";
meta = with lib; {
description = "TCRF syllable segmenter for Thai";
homepage = "https://github.com/ponrawee/ssg";
license = licenses.asl20;
maintainers = with maintainers; [ vizid ];
mainProgram = "ssg-cli";
};
}

View File

@ -14432,6 +14432,8 @@ self: super: with self; {
sslib = callPackage ../development/python-modules/sslib { };
ssg = callPackage ../development/python-modules/ssg { };
stack-data = callPackage ../development/python-modules/stack-data { };
stanio = callPackage ../development/python-modules/stanio { };