python312Packages.ctranslate2: cleanup
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user