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

This commit is contained in:
Yt
2025-07-18 20:12:35 -04:00
committed by GitHub
2 changed files with 7 additions and 10 deletions
@@ -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";
@@ -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";
};
}