10 hatch-fancy-pypi-readme,
38 buildPythonPackage rec {
43 disabled = pythonOlder "3.8";
45 src = fetchFromGitHub {
47 repo = "openai-python";
49 hash = "sha256-0NiueCUB5w4H1B5cXSyoO641DGB2J2rF2vGwPQSJJPM=";
54 hatch-fancy-pypi-readme
66 ] ++ optional-dependencies.realtime;
68 optional-dependencies = {
79 pythonImportsCheck = [ "openai" ];
93 "ignore::DeprecationWarning"
98 # Tests make network requests
99 "test_copy_build_request"
100 "test_basic_attribute_access_works"
102 ++ lib.optionals (pythonAtLeast "3.13") [
103 # RuntimeWarning: coroutine method 'aclose' of 'AsyncStream._iter_events' was never awaited
104 "test_multi_byte_character_multiple_chunks"
107 disabledTestPaths = [
108 # Test makes network requests
109 "tests/api_resources"
113 description = "Python client library for the OpenAI API";
114 homepage = "https://github.com/openai/openai-python";
115 changelog = "https://github.com/openai/openai-python/blob/v${version}/CHANGELOG.md";
116 license = licenses.mit;
117 maintainers = with maintainers; [ malo ];
118 mainProgram = "openai";