Unverified Commit ddf0b68b authored by Yt's avatar Yt Committed by GitHub
Browse files

python3Packages.openai: 1.91.0 -> 1.97.0 (#420345)

parents 19e3800b ff0fd58a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,14 +32,14 @@

buildPythonPackage rec {
  pname = "langchain-openai";
  version = "0.3.24";
  version = "0.3.28";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-openai==${version}";
    hash = "sha256-eJqI7R1YzmVrZ+OoK2qtxkM2odpEDjszbBRD+2Gog9o=";
    hash = "sha256-HpAdCHxmfGJcqXArvtlYagNuEBGBjrbICIwh9nI0qMQ=";
  };

  sourceRoot = "${src.name}/libs/partners/openai";
+5 −8
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,
  pythonOlder,

  # build-system
  hatchling,
@@ -52,16 +51,14 @@

buildPythonPackage rec {
  pname = "openai";
  version = "1.91.0";
  version = "1.97.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "openai";
    repo = "openai-python";
    tag = "v${version}";
    hash = "sha256-5thOFxXIStNowiEz9IacAkAC611zzXXs0ZB1tyuR+Go=";
    hash = "sha256-q+GUEHducm71Zqh7ZfRF217awFKQIsOSEWoe04M3DFM=";
  };

  postPatch = ''substituteInPlace pyproject.toml --replace-fail "hatchling==1.26.3" "hatchling"'';
@@ -138,12 +135,12 @@ buildPythonPackage rec {
    "tests/api_resources"
  ];

  meta = with lib; {
  meta = {
    description = "Python client library for the OpenAI API";
    homepage = "https://github.com/openai/openai-python";
    changelog = "https://github.com/openai/openai-python/blob/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ malo ];
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.malo ];
    mainProgram = "openai";
  };
}