From b1fc96bb2b33bd8b994ed19fea3a0a9a1bc50697 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Tue, 6 Aug 2024 12:05:17 -0700 Subject: [PATCH] python311Packages.openai: 1.40.8 -> 1.42.0 --- .../python-modules/openai/default.nix | 61 ++++++++++--------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index c8dbfdf7816b..9c6b66fdd20d 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -1,33 +1,41 @@ { lib, - anyio, buildPythonPackage, - cached-property, - dirty-equals, - distro, fetchFromGitHub, - hatch-fancy-pypi-readme, - hatchling, - jiter, - httpx, - numpy, - pandas, - pandas-stubs, - pydantic, - inline-snapshot, - pytest-asyncio, - pytest-mock, - pytestCheckHook, pythonOlder, - respx, + + # build-system + hatchling, + hatch-fancy-pypi-readme, + + # dependencies + anyio, + cached-property, + distro, + httpx, + jiter, + pydantic, sniffio, tqdm, typing-extensions, + + numpy, + pandas, + pandas-stubs, + + # check deps + pytestCheckHook, + dirty-equals, + inline-snapshot, + pytest-asyncio, + pytest-mock, + respx, + }: buildPythonPackage rec { pname = "openai"; - version = "1.40.8"; + version = "1.42.0"; pyproject = true; disabled = pythonOlder "3.7.1"; @@ -36,7 +44,7 @@ buildPythonPackage rec { owner = "openai"; repo = "openai-python"; rev = "refs/tags/v${version}"; - hash = "sha256-T9TdZWPC8exIY7FoLQkz+QfzWFT5BxCBHxP9SXQeT0I="; + hash = "sha256-Pj4MmylUB6JGTlueOgtAd9RgOxn3QoPe2Xf1hYnOZ9c="; }; build-system = [ @@ -45,14 +53,14 @@ buildPythonPackage rec { ]; dependencies = [ - jiter - httpx - pydantic - typing-extensions anyio distro + httpx + jiter + pydantic sniffio tqdm + typing-extensions ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ]; passthru.optional-dependencies = { @@ -66,12 +74,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "openai" ]; nativeCheckInputs = [ - inline-snapshot pytestCheckHook + dirty-equals + inline-snapshot pytest-asyncio pytest-mock respx - dirty-equals ]; pytestFlagsArray = [ @@ -81,10 +89,7 @@ buildPythonPackage rec { disabledTests = [ # Tests make network requests - "test_streaming_response" "test_copy_build_request" - - # Test fails with pytest>=8 "test_basic_attribute_access_works" ];