python3Packages.openai: 1.91.0 -> 1.97.0 (#420345)

authored by Yt and committed by GitHub ddf0b68b 19e3800b

+7 -10
+2 -2
pkgs/development/python-modules/langchain-openai/default.nix
··· 32 32 33 33 buildPythonPackage rec { 34 34 pname = "langchain-openai"; 35 - version = "0.3.24"; 35 + version = "0.3.28"; 36 36 pyproject = true; 37 37 38 38 src = fetchFromGitHub { 39 39 owner = "langchain-ai"; 40 40 repo = "langchain"; 41 41 tag = "langchain-openai==${version}"; 42 - hash = "sha256-eJqI7R1YzmVrZ+OoK2qtxkM2odpEDjszbBRD+2Gog9o="; 42 + hash = "sha256-HpAdCHxmfGJcqXArvtlYagNuEBGBjrbICIwh9nI0qMQ="; 43 43 }; 44 44 45 45 sourceRoot = "${src.name}/libs/partners/openai";
+5 -8
pkgs/development/python-modules/openai/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 pythonAtLeast, 6 - pythonOlder, 7 6 8 7 # build-system 9 8 hatchling, ··· 52 51 53 52 buildPythonPackage rec { 54 53 pname = "openai"; 55 - version = "1.91.0"; 54 + version = "1.97.0"; 56 55 pyproject = true; 57 - 58 - disabled = pythonOlder "3.8"; 59 56 60 57 src = fetchFromGitHub { 61 58 owner = "openai"; 62 59 repo = "openai-python"; 63 60 tag = "v${version}"; 64 - hash = "sha256-5thOFxXIStNowiEz9IacAkAC611zzXXs0ZB1tyuR+Go="; 61 + hash = "sha256-q+GUEHducm71Zqh7ZfRF217awFKQIsOSEWoe04M3DFM="; 65 62 }; 66 63 67 64 postPatch = ''substituteInPlace pyproject.toml --replace-fail "hatchling==1.26.3" "hatchling"''; ··· 138 135 "tests/api_resources" 139 136 ]; 140 137 141 - meta = with lib; { 138 + meta = { 142 139 description = "Python client library for the OpenAI API"; 143 140 homepage = "https://github.com/openai/openai-python"; 144 141 changelog = "https://github.com/openai/openai-python/blob/v${version}/CHANGELOG.md"; 145 - license = licenses.mit; 146 - maintainers = with maintainers; [ malo ]; 142 + license = lib.licenses.mit; 143 + maintainers = [ lib.maintainers.malo ]; 147 144 mainProgram = "openai"; 148 145 }; 149 146 }