From 6eb25745769b364b79e5b474a2fd1ba0d72eb2b3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 21 May 2025 18:10:01 +0200 Subject: [PATCH] python312Packages.ctranslate2: cleanup --- .../development/python-modules/ctranslate2/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/ctranslate2/default.nix b/pkgs/development/python-modules/ctranslate2/default.nix index d1a56041f07b..031516b63965 100644 --- a/pkgs/development/python-modules/ctranslate2/default.nix +++ b/pkgs/development/python-modules/ctranslate2/default.nix @@ -16,6 +16,7 @@ pytestCheckHook, torch, transformers, + writableTmpDirAsHomeHook, wurlitzer, }: @@ -50,14 +51,13 @@ buildPythonPackage rec { pytestCheckHook torch transformers + writableTmpDirAsHomeHook wurlitzer ]; preCheck = '' # run tests against build result, not sources rm -rf ctranslate2 - - export HOME=$TMPDIR ''; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ @@ -72,11 +72,11 @@ buildPythonPackage rec { "tests/test_transformers.py" ]; - meta = with lib; { + meta = { description = "Fast inference engine for Transformer models"; homepage = "https://github.com/OpenNMT/CTranslate2"; changelog = "https://github.com/OpenNMT/CTranslate2/blob/${src.rev}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ hexa ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ hexa ]; }; }