python312Packages.lexilang: refactor

This commit is contained in:
natsukium
2025-01-18 15:07:37 +09:00
parent 2046a92e06
commit 7beeeabd03
@@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
python,
}:
@@ -19,9 +18,9 @@ buildPythonPackage rec {
hash = "sha256-Yn6zthr6irkDsRx25NG9gOQc07xRpItwCc6+WqAhd/c=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "lexilang" ];
checkPhase = ''
runHook preCheck
@@ -29,10 +28,10 @@ buildPythonPackage rec {
runHook postCheck
'';
meta = with lib; {
meta = {
description = "Simple, fast dictionary-based language detector for short texts";
homepage = "https://github.com/LibreTranslate/LexiLang";
license = licenses.agpl3Only;
maintainers = with maintainers; [ izorkin ];
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ izorkin ];
};
}