From 2498d84c02e6daaee998a9ee77a2b932ba3743e5 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Wed, 10 Jun 2026 15:34:30 -0700 Subject: [PATCH 1/2] pdftitle: use python3Packages.openai The openai function argument shadowed the `with python3Packages` scope, so withOpenai injected the top-level CLI application into the Python dependencies instead of the library. Also unblocks dropping the top-level openai attribute, whose CLI was removed upstream in v2.35.0. --- pkgs/by-name/pd/pdftitle/package.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/by-name/pd/pdftitle/package.nix b/pkgs/by-name/pd/pdftitle/package.nix index d28ca7f8e281..2e402c91cb3f 100644 --- a/pkgs/by-name/pd/pdftitle/package.nix +++ b/pkgs/by-name/pd/pdftitle/package.nix @@ -2,7 +2,6 @@ lib, fetchFromGitHub, python3Packages, - openai, pdfminer, withOpenai ? false, From 041650c87f71339cf684fcb88ed5b37faac90f14 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Wed, 10 Jun 2026 15:28:12 -0700 Subject: [PATCH 2/2] python3Packages.openai: 2.33.0 -> 2.41.1, openai: drop Upstream removed the legacy CLI in v2.35.0, so the top-level package built with toPythonApplication no longer provides any binaries. Changelog: https://github.com/openai/openai-python/blob/v2.41.1/CHANGELOG.md Diff: https://github.com/openai/openai-python/compare/v2.33.0...v2.41.1 --- pkgs/development/python-modules/openai/default.nix | 5 ++--- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index ddfa0f3b8548..41871cd05921 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -51,14 +51,14 @@ buildPythonPackage rec { pname = "openai"; - version = "2.33.0"; + version = "2.41.1"; pyproject = true; src = fetchFromGitHub { owner = "openai"; repo = "openai-python"; tag = "v${version}"; - hash = "sha256-w2ejAJ+V7e4wYSQ/9+WdhO+XaYeSq8U/V5YXHSpn+rI="; + hash = "sha256-jSkBxZY5POlrznhBwFMR2NcL92uGRSYI6BDDC3C7RfU="; }; postPatch = ''substituteInPlace pyproject.toml --replace-fail "hatchling==1.26.3" "hatchling"''; @@ -129,6 +129,5 @@ buildPythonPackage rec { changelog = "https://github.com/openai/openai-python/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.malo ]; - mainProgram = "openai"; }; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8017987d67c3..86c474e649bb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1640,6 +1640,7 @@ mapAliases { open-stage-control = throw "'open-stage-control' has been removed due to being broken for more than a year; see RFC 180"; # Added 2026-05-04 open-timeline-io = warnAlias "'open-timeline-io' has been renamed to 'opentimelineio'" opentimelineio; # Added 2025-08-10 openafs_1_8 = throw "'openafs_1_8' has been renamed to/replaced by 'openafs'"; # Converted to throw 2025-10-27 + openai = throw "'openai' has been removed, since upstream removed the legacy CLI in v2.35.0; use 'python3Packages.openai' instead"; # Added 2026-06-10 openai-triton-llvm = throw "'openai-triton-llvm' has been renamed to/replaced by 'triton-llvm'"; # Converted to throw 2025-10-27 openai-whisper-cpp = throw "'openai-whisper-cpp' has been renamed to/replaced by 'whisper-cpp'"; # Converted to throw 2025-10-27 openalSoft = warnAlias "'openalSoft' has been renamed to 'openal-soft'" openal-soft; # Added 2026-02-09 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe2fd4a521fc..4d9cde7b04fe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5506,8 +5506,6 @@ with pkgs; sdk = true; }; - openai = with python3Packages; toPythonApplication openai; - openai-whisper = with python3.pkgs; toPythonApplication openai-whisper; openocd-rp2040 = openocd.overrideAttrs (old: {