Unverified Commit 68fcbb0f authored by Martin Weinelt's avatar Martin Weinelt
Browse files
parent 5329068d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,14 +28,14 @@ let
in
stdenv'.mkDerivation (finalAttrs: {
  pname = "ctranslate2";
  version = "4.6.0";
  version = "4.6.1";

  src = fetchFromGitHub {
    owner = "OpenNMT";
    repo = "CTranslate2";
    tag = "v${finalAttrs.version}";
    fetchSubmodules = true;
    hash = "sha256-EM2kunqtxo0BTIzrEomfaRsdav7sx6QEOhjDtjjSoYY=";
    hash = "sha256-nnbBK1dIHwhq8n1mJe2wOLcDkIuScFbQwZvJ8x+knCk=";
  };

  # Fix CMake 4 compatibility
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ buildPythonPackage rec {
  # https://github.com/OpenNMT/CTranslate2/tree/master/python
  sourceRoot = "${src.name}/python";

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "pybind11==" "pybind11>="
  '';

  build-system = [
    pybind11
    setuptools