Unverified Commit d1ea18d6 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python3Packages.openai: 1.87.0 -> 1.91.0 (#419104)

parents 2bf69893 9fec8d17
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -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