From 2046a92e0649a8a3d51a9e843f12ec8e22fe356e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 17 Jan 2025 14:56:46 +0000 Subject: [PATCH 1/2] python312Packages.lexilang: 1.0.2 -> 1.0.5 Diff: https://github.com/LibreTranslate/LexiLang/compare/refs/tags/v1.0.2...v1.0.5 --- pkgs/development/python-modules/lexilang/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lexilang/default.nix b/pkgs/development/python-modules/lexilang/default.nix index b84122e76abe..a6ec79c39ec4 100644 --- a/pkgs/development/python-modules/lexilang/default.nix +++ b/pkgs/development/python-modules/lexilang/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "lexilang"; - version = "1.0.2"; + version = "1.0.5"; pyproject = true; src = fetchFromGitHub { owner = "LibreTranslate"; repo = "LexiLang"; tag = "v${version}"; - hash = "sha256-/uSoEz/5HJnFVkXZndIlM+K0OJLJaorFQ6+kWYELjrs="; + hash = "sha256-Yn6zthr6irkDsRx25NG9gOQc07xRpItwCc6+WqAhd/c="; }; nativeBuildInputs = [ setuptools ]; From 7beeeabd03ff03898307ee628769f10c23c9829c Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 18 Jan 2025 15:07:02 +0900 Subject: [PATCH 2/2] python312Packages.lexilang: refactor --- pkgs/development/python-modules/lexilang/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/lexilang/default.nix b/pkgs/development/python-modules/lexilang/default.nix index a6ec79c39ec4..227fdb0e55b5 100644 --- a/pkgs/development/python-modules/lexilang/default.nix +++ b/pkgs/development/python-modules/lexilang/default.nix @@ -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 ]; }; }