Merge pull request #332797 from malob/update-openai

python312Packages.openai: 1.40.8 -> 1.42.0

authored by Pol Dellaiera and committed by GitHub ae815cee b8fa9456

+28 -23
+28 -23
pkgs/development/python-modules/openai/default.nix
··· 1 1 { 2 2 lib, 3 - anyio, 4 3 buildPythonPackage, 5 - cached-property, 6 - dirty-equals, 7 - distro, 8 4 fetchFromGitHub, 9 - hatch-fancy-pypi-readme, 5 + pythonOlder, 6 + 7 + # build-system 10 8 hatchling, 11 - jiter, 9 + hatch-fancy-pypi-readme, 10 + 11 + # dependencies 12 + anyio, 13 + cached-property, 14 + distro, 12 15 httpx, 16 + jiter, 17 + pydantic, 18 + sniffio, 19 + tqdm, 20 + typing-extensions, 21 + 13 22 numpy, 14 23 pandas, 15 24 pandas-stubs, 16 - pydantic, 25 + 26 + # check deps 27 + pytestCheckHook, 28 + dirty-equals, 17 29 inline-snapshot, 18 30 pytest-asyncio, 19 31 pytest-mock, 20 - pytestCheckHook, 21 - pythonOlder, 22 32 respx, 23 - sniffio, 24 - tqdm, 25 - typing-extensions, 33 + 26 34 }: 27 35 28 36 buildPythonPackage rec { 29 37 pname = "openai"; 30 - version = "1.40.8"; 38 + version = "1.42.0"; 31 39 pyproject = true; 32 40 33 41 disabled = pythonOlder "3.7.1"; ··· 36 44 owner = "openai"; 37 45 repo = "openai-python"; 38 46 rev = "refs/tags/v${version}"; 39 - hash = "sha256-T9TdZWPC8exIY7FoLQkz+QfzWFT5BxCBHxP9SXQeT0I="; 47 + hash = "sha256-Pj4MmylUB6JGTlueOgtAd9RgOxn3QoPe2Xf1hYnOZ9c="; 40 48 }; 41 49 42 50 build-system = [ ··· 45 53 ]; 46 54 47 55 dependencies = [ 56 + anyio 57 + distro 58 + httpx 48 59 jiter 49 - httpx 50 60 pydantic 51 - typing-extensions 52 - anyio 53 - distro 54 61 sniffio 55 62 tqdm 63 + typing-extensions 56 64 ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ]; 57 65 58 66 passthru.optional-dependencies = { ··· 66 74 pythonImportsCheck = [ "openai" ]; 67 75 68 76 nativeCheckInputs = [ 69 - inline-snapshot 70 77 pytestCheckHook 78 + dirty-equals 79 + inline-snapshot 71 80 pytest-asyncio 72 81 pytest-mock 73 82 respx 74 - dirty-equals 75 83 ]; 76 84 77 85 pytestFlagsArray = [ ··· 81 89 82 90 disabledTests = [ 83 91 # Tests make network requests 84 - "test_streaming_response" 85 92 "test_copy_build_request" 86 - 87 - # Test fails with pytest>=8 88 93 "test_basic_attribute_access_works" 89 94 ]; 90 95