python311Packages.openai: fix build
This commit is contained in:
parent
aeec716983
commit
186f4926f8
1 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, hatchling
|
||||
# propagated
|
||||
, httpx
|
||||
|
@ -40,6 +41,12 @@ buildPythonPackage rec {
|
|||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
# https://github.com/openai/openai-python/issues/921
|
||||
"anyio"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -73,6 +80,10 @@ buildPythonPackage rec {
|
|||
dirty-equals
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
OPENAI_API_KEY = "sk-foo";
|
||||
|
||||
disabledTestPaths = [
|
||||
|
|
Loading…
Reference in a new issue