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