ctranslate2: 4.6.0 -> 4.6.1

https://github.com/OpenNMT/CTranslate2/blob/v4.6.1/CHANGELOG.md
This commit is contained in:
Martin Weinelt
2025-11-07 20:12:42 +01:00
parent 5329068d13
commit 68fcbb0fe8
2 changed files with 7 additions and 2 deletions

View File

@@ -28,14 +28,14 @@ let
in in
stdenv'.mkDerivation (finalAttrs: { stdenv'.mkDerivation (finalAttrs: {
pname = "ctranslate2"; pname = "ctranslate2";
version = "4.6.0"; version = "4.6.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenNMT"; owner = "OpenNMT";
repo = "CTranslate2"; repo = "CTranslate2";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-EM2kunqtxo0BTIzrEomfaRsdav7sx6QEOhjDtjjSoYY="; hash = "sha256-nnbBK1dIHwhq8n1mJe2wOLcDkIuScFbQwZvJ8x+knCk=";
}; };
# Fix CMake 4 compatibility # Fix CMake 4 compatibility

View File

@@ -27,6 +27,11 @@ buildPythonPackage rec {
# https://github.com/OpenNMT/CTranslate2/tree/master/python # https://github.com/OpenNMT/CTranslate2/tree/master/python
sourceRoot = "${src.name}/python"; sourceRoot = "${src.name}/python";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "pybind11==" "pybind11>="
'';
build-system = [ build-system = [
pybind11 pybind11
setuptools setuptools