From 9fec8d171986c464698849dfc56d67619484b17e Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Sun, 22 Jun 2025 14:35:12 -0700 Subject: [PATCH] python3Packages.openai: 1.87.0 -> 1.91.0 Diff: https://github.com/openai/openai-python/compare/refs/tags/v1.87.0...refs/tags/v1.91.0 Changelog: https://github.com/openai/openai-python/blob/v1.91.0/CHANGELOG.md --- pkgs/development/python-modules/openai/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index 243b81ee05b3..fc6efa7838c9 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -19,6 +19,11 @@ tqdm, typing-extensions, + # `httpx_aiohttp` not currently in `nixpkgs` + # optional-dependencies (aiohttp) + # aiohttp, + # httpx_aiohttp, + # optional-dependencies (datalib) numpy, pandas, @@ -47,7 +52,7 @@ buildPythonPackage rec { pname = "openai"; - version = "1.87.0"; + version = "1.91.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -56,7 +61,7 @@ buildPythonPackage rec { owner = "openai"; repo = "openai-python"; tag = "v${version}"; - hash = "sha256-KXvtAxkALZd/T5mVLkDemO7qQ7E2CLVmRpAg1+cRcdU="; + hash = "sha256-5thOFxXIStNowiEz9IacAkAC611zzXXs0ZB1tyuR+Go="; }; postPatch = ''substituteInPlace pyproject.toml --replace-fail "hatchling==1.26.3" "hatchling"''; @@ -81,6 +86,11 @@ buildPythonPackage rec { ++ lib.optionals withVoiceHelpers optional-dependencies.voice-helpers; optional-dependencies = { + # `httpx_aiohttp` not currently in `nixpkgs` + # aiohttp = [ + # aiohttp + # httpx_aiohttp + # ]; datalib = [ numpy pandas