python311Packages.openai: fix build

This commit is contained in:
natsukium 2023-12-07 19:24:34 +09:00 committed by Martin Weinelt
parent aeec716983
commit 186f4926f8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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 = [