Unverified Commit 1225df86 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #289307 from patka-123/cohere-fix-build

python311Packages.cohere: fix build
parents 0a349ba4 93ee3a96
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
buildPythonPackage rec {
  pname = "cohere";
  version = "4.37";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -24,15 +24,6 @@ buildPythonPackage rec {
    hash = "sha256-eIAh2dmSxsMdGYXZXMyyd8cmWILErNekmz5H2ne0vsg=";
  };

  patches = [
    # https://github.com/cohere-ai/cohere-python/pull/289
    (fetchpatch {
      name = "replace-poetry-with-poetry-core.patch";
      url = "https://github.com/cohere-ai/cohere-python/commit/e86480336331c0cf6f67e26b0825467dfca5b277.patch";
      hash = "sha256-P1Ioq5ypzT3tx6cxrI3ep34Fi4cUx88YkfJ5ErN3VHk=";
    })
  ];

  nativeBuildInputs = [
    poetry-core
  ];