python311Packages.openai: 1.7.1 -> 1.9.0
Diff: https://github.com/openai/openai-python/compare/refs/tags/v1.7.1...v1.9.0 Changelog: https://github.com/openai/openai-python/releases/tag/v1.9.0
This commit is contained in:
parent
2951dec6e1
commit
ebc874c2fa
1 changed files with 8 additions and 16 deletions
|
@ -2,7 +2,6 @@
|
|||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, hatchling
|
||||
# propagated
|
||||
, httpx
|
||||
|
@ -11,6 +10,7 @@
|
|||
, anyio
|
||||
, distro
|
||||
, sniffio
|
||||
, cached-property
|
||||
, tqdm
|
||||
# optional
|
||||
, numpy
|
||||
|
@ -26,38 +26,32 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "openai";
|
||||
version = "1.7.1";
|
||||
version = "1.9.0";
|
||||
pyproject = true;
|
||||
|
||||
|
||||
disabled = pythonOlder "3.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openai";
|
||||
repo = "openai-python";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-NXZ+7gDA3gMGSrmgceHxcR45LrXdazXbYuhcoUsNXew=";
|
||||
hash = "sha256-+3tCttKWbWt3Nsf5E6NWYt0yLRV0kfj7Qz6PhaOmBsY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
# https://github.com/openai/openai-python/issues/921
|
||||
"anyio"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
pydantic
|
||||
typing-extensions
|
||||
anyio
|
||||
distro
|
||||
sniffio
|
||||
tqdm
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
cached-property
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
|
@ -80,15 +74,13 @@ buildPythonPackage rec {
|
|||
dirty-equals
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
disabledTests = [
|
||||
# makes network requests
|
||||
"test_streaming_response"
|
||||
];
|
||||
|
||||
OPENAI_API_KEY = "sk-foo";
|
||||
|
||||
disabledTestPaths = [
|
||||
# makes network requests
|
||||
"tests/test_client.py"
|
||||
"tests/api_resources"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue