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