From 2bcfbc136d3640b65d3feb7b84660d003a8dfdb6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 11:02:31 +0100 Subject: [PATCH 01/12] python311Packages.openai: 1.11.0 -> 1.12.0 Diff: https://github.com/openai/openai-python/compare/refs/tags/v1.11.0...v1.12.0 Changelog: https://github.com/openai/openai-python/releases/tag/v1.12.0 --- pkgs/development/python-modules/openai/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index fcd9620cdf4a..5b8140e1d0a3 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -26,7 +26,7 @@ buildPythonPackage rec { pname = "openai"; - version = "1.11.1"; + version = "1.12.0"; pyproject = true; disabled = pythonOlder "3.7.1"; @@ -35,7 +35,7 @@ buildPythonPackage rec { owner = "openai"; repo = "openai-python"; rev = "refs/tags/v${version}"; - hash = "sha256-PtxKQQfcM4aOlqU0qIJDpB/24Wkt/omx+uDk4mRZU4s="; + hash = "sha256-v623+dxttNDAfVh+2h64SqT4FvaOGRe0zvHCchIy/Wg="; }; nativeBuildInputs = [ @@ -75,12 +75,13 @@ buildPythonPackage rec { ]; disabledTests = [ - # makes network requests + # Tests make network requests "test_streaming_response" + "test_copy_build_request" ]; disabledTestPaths = [ - # makes network requests + # Test makes network requests "tests/api_resources" ]; From 60ecefd7daf84d38231a600bcc48f4878817806c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 11:34:38 +0100 Subject: [PATCH 02/12] python311Packages.click-default-group: 1.2.2 -> 1.2.4 Diff: https://github.com/click-contrib/click-default-group/compare/refs/tags/v1.2.2...v1.2.4 --- .../click-default-group/default.nix | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/click-default-group/default.nix b/pkgs/development/python-modules/click-default-group/default.nix index 043627b0501e..49422099ad78 100644 --- a/pkgs/development/python-modules/click-default-group/default.nix +++ b/pkgs/development/python-modules/click-default-group/default.nix @@ -1,41 +1,45 @@ { lib , buildPythonPackage -, fetchFromGitHub -, fetchpatch , click +, fetchFromGitHub , pytestCheckHook +, pythonOlder +, flit-core }: buildPythonPackage rec { pname = "click-default-group"; - version = "1.2.2"; - format = "setuptools"; + version = "1.2.4"; + pyproject = true; + + disabled = pythonOlder "3.7"; - # No tests in Pypi tarball src = fetchFromGitHub { owner = "click-contrib"; repo = "click-default-group"; - rev = "v${version}"; - sha256 = "0nk39lmkn208w8kvq6f4h3a6qzxrrvxixahpips6ik3zflbkss86"; + rev = "refs/tags/v${version}"; + hash = "sha256-9Vk4LdgLDAWG2YCQPLKR6PIVnULmpOoe7RtS8DgWARo="; }; - patches = [ - # make tests compatible with click 8 - (fetchpatch { - url = "https://github.com/click-contrib/click-default-group/commit/9415c77d05cf7d16876e7d70a49a41a6189983b4.patch"; - sha256 = "1czzma8nmwyxhwhnr8rfw5bjw6d46b3s5r5bfb8ly3sjwqjlwhw2"; - }) + nativeBuildInputs = [ + flit-core ]; - propagatedBuildInputs = [ click ]; + propagatedBuildInputs = [ + click + ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "click_default_group" ]; + pythonImportsCheck = [ + "click_default_group" + ]; meta = with lib; { - homepage = "https://github.com/click-contrib/click-default-group"; description = "Group to invoke a command without explicit subcommand name"; + homepage = "https://github.com/click-contrib/click-default-group"; license = licenses.bsd3; maintainers = with maintainers; [ jakewaksbaum ]; }; From 0475c56500b83417a7bd4a5b5ade320ac81833eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 12:16:16 +0100 Subject: [PATCH 03/12] python311Packages.llm: 0.11.0 -> 0.13.1 Diff: https://github.com/simonw/llm/compare/refs/tags/0.11.0...0.13.1 Changelog: https://github.com/simonw/llm/releases/tag/0.13.1 --- .../python-modules/llm/default.nix | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 318f67353308..5626da5e3858 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -1,27 +1,27 @@ -{ - buildPythonApplication, - buildPythonPackage, - fetchFromGitHub, - lib, - makeWrapper, - pytestCheckHook, - python3, - pythonOlder, - ruff, - setuptools, -}: let +{ lib +, buildPythonApplication +, buildPythonPackage +, fetchFromGitHub +, makeWrapper +, pytestCheckHook +, python3 +, pythonOlder +, ruff +, setuptools +}: +let llm = buildPythonPackage rec { pname = "llm"; - version = "0.12"; + version = "0.13.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "simonw"; - repo = pname; + repo = "llm"; rev = "refs/tags/${version}"; - hash = "sha256-aCqdw2co/cXrBwVY/k/aSLl3C22nlH5LvU2yir1/NnQ="; + hash = "sha256-Nq6pduzl8IK+nA3pctst/W4ux7+P6mBFTEHMF+vtBQw="; }; patches = [ @@ -36,6 +36,7 @@ click-default-group numpy openai + pip pluggy pydantic python-ulid @@ -48,8 +49,8 @@ nativeCheckInputs = with python3.pkgs; [ cogapp numpy + pytest-httpx pytestCheckHook - requests-mock ]; doCheck = true; From 4939a683ceeb35fcb8aa729eb17aabd5ae28effa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 12:43:02 +0100 Subject: [PATCH 04/12] python311Packages.fastapi-sso: init at 0.11.0 FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account https://github.com/tomasvotava/fastapi-sso --- .../python-modules/fastapi-sso/default.nix | 65 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 67 insertions(+) create mode 100644 pkgs/development/python-modules/fastapi-sso/default.nix diff --git a/pkgs/development/python-modules/fastapi-sso/default.nix b/pkgs/development/python-modules/fastapi-sso/default.nix new file mode 100644 index 000000000000..e74cfcd72999 --- /dev/null +++ b/pkgs/development/python-modules/fastapi-sso/default.nix @@ -0,0 +1,65 @@ +{ lib +, buildPythonPackage +, email-validator +, fastapi +, fetchFromGitHub +, httpx +, oauthlib +, poetry-core +, pydantic +, pylint +, pytest-asyncio +, pytest-xdist +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "fastapi-sso"; + version = "0.11.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "tomasvotava"; + repo = "fastapi-sso"; + rev = "refs/tags/${version}"; + hash = "sha256-bz4rr7h90d/QkBBqQN1pLF8ANhOiq2v0Vv2pjBGpeTs="; + }; + + postPatch = '' + sed -i "/--cov/d" pyproject.toml + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + fastapi + httpx + oauthlib + pydantic + pylint + ]; + + nativeCheckInputs = [ + email-validator + pytest-asyncio + pytest-xdist + pytestCheckHook + ]; + + pythonImportsCheck = [ + "fastapi_sso" + ]; + + meta = with lib; { + description = "FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account"; + homepage = "https://github.com/tomasvotava/fastapi-sso"; + changelog = "https://github.com/tomasvotava/fastapi-sso/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92354bbb789b..00f0c33ecf52 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3939,6 +3939,8 @@ self: super: with self; { fastapi-mail = callPackage ../development/python-modules/fastapi-mail { }; + fastapi-sso = callPackage ../development/python-modules/fastapi-sso { }; + fast-histogram = callPackage ../development/python-modules/fast-histogram { }; fastavro = callPackage ../development/python-modules/fastavro { }; From 68aa8a1e11b36f71928506903a1113066d929abb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:21:00 +0100 Subject: [PATCH 05/12] python311Packages.prisma: init at 0.12.0 Auto-generated and fully type-safe database client for prisma https://github.com/RobertCraigie/prisma-client-py --- .../python-modules/prisma/default.nix | 63 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 67 insertions(+) create mode 100644 pkgs/development/python-modules/prisma/default.nix diff --git a/pkgs/development/python-modules/prisma/default.nix b/pkgs/development/python-modules/prisma/default.nix new file mode 100644 index 000000000000..7d1a74a7f5b9 --- /dev/null +++ b/pkgs/development/python-modules/prisma/default.nix @@ -0,0 +1,63 @@ +{ lib +, buildPythonPackage +, click +, fetchFromGitHub +, httpx +, jinja2 +, nodeenv +, pydantic +, pytestCheckHook +, python-dotenv +, pythonOlder +, setuptools +, strenum +, tomlkit +, typing-extensions +}: + +buildPythonPackage rec { + pname = "prisma"; + version = "0.12.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "RobertCraigie"; + repo = "prisma-client-py"; + rev = "refs/tags/v${version}"; + hash = "sha256-vmcYBUPDhFbxgWyrF+AjoXwAAH2R/tJYttFD+41bPbA="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + click + httpx + jinja2 + nodeenv + pydantic + python-dotenv + tomlkit + typing-extensions + ] ++ lib.optionals (pythonOlder "3.11") [ + strenum + ]; + + # Building the client requires network access + doCheck = false; + + pythonImportsCheck = [ + "prisma" + ]; + + meta = with lib; { + description = "Auto-generated and fully type-safe database client for prisma"; + homepage = "https://github.com/RobertCraigie/prisma-client-py"; + changelog = "https://github.com/RobertCraigie/prisma-client-py/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 00f0c33ecf52..77367d6f09b2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9895,6 +9895,8 @@ self: super: with self; { priority = callPackage ../development/python-modules/priority { }; + prisma = callPackage ../development/python-modules/prisma { }; + prison = callPackage ../development/python-modules/prison { }; proboscis = callPackage ../development/python-modules/proboscis { }; @@ -12666,6 +12668,8 @@ self: super: with self; { resampy = callPackage ../development/python-modules/resampy { }; + resend = callPackage ../development/python-modules/resend { }; + resize-right = callPackage ../development/python-modules/resize-right { }; resolvelib = callPackage ../development/python-modules/resolvelib { }; From 165a3b532331ed4f6b1b6d199f30164b8f3e8344 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:23:22 +0100 Subject: [PATCH 06/12] python311Packages.resend: init at 0.7.2 SDK for Resend https://github.com/resend/resend-python --- .../python-modules/resend/default.nix | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/resend/default.nix diff --git a/pkgs/development/python-modules/resend/default.nix b/pkgs/development/python-modules/resend/default.nix new file mode 100644 index 000000000000..0fc371a76d2d --- /dev/null +++ b/pkgs/development/python-modules/resend/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +, pytestCheckHook +, requests +}: + +buildPythonPackage rec { + pname = "resend"; + version = "0.7.2"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "resend"; + repo = "resend-python"; + rev = "refs/tags/v${version}"; + hash = "sha256-3wX2xNz/6Erv97TlQCuF0Sha0fbJJX1LK9dx8xYG4M0="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + requests + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "resend" + ]; + + meta = with lib; { + description = "SDK for Resend"; + homepage = "https://github.com/resend/resend-python"; + changelog = "https://github.com/resend/resend-python/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} From 777188914f6dee812dffefc33a44b38f0aef2a94 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:27:25 +0100 Subject: [PATCH 07/12] python311Packages.litellm: 1.23.0 -> 1.23.9 Diff: https://github.com/BerriAI/litellm/compare/refs/tags/v1.23.0...v1.23.9 Changelog: https://github.com/BerriAI/litellm/releases/tag/v1.23.9 --- .../python-modules/litellm/default.nix | 78 ++++++++++++++----- 1 file changed, 59 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/litellm/default.nix b/pkgs/development/python-modules/litellm/default.nix index d34dece547a9..e15ddf71a009 100644 --- a/pkgs/development/python-modules/litellm/default.nix +++ b/pkgs/development/python-modules/litellm/default.nix @@ -1,31 +1,48 @@ { lib +, aiohttp +, apscheduler +, azure-identity +, azure-keyvault-secrets +, backoff , buildPythonPackage +, click +, fastapi +, fastapi-sso , fetchFromGitHub -, poetry-core +, google-cloud-kms +, gunicorn , importlib-metadata +, jinja2 , openai +, orjson +, poetry-core +, prisma +, pyjwt , python-dotenv +, python-multipart +, pythonOlder +, pyyaml +, requests +, resend +, rq +, streamlit , tiktoken , tokenizers -, click -, jinja2 -, certifi -, appdirs -, aiohttp +, uvicorn }: -let - version = "1.23.0"; -in -buildPythonPackage { + +buildPythonPackage rec { pname = "litellm"; - inherit version; + version = "1.23.9"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "BerriAI"; repo = "litellm"; rev = "refs/tags/v${version}"; - hash = "sha256-Pl3Fet0TvGrNHNw4ssUMqa+UhzBYgqTydNfD96TeY7I="; + hash = "sha256-5VqYo9JhRwtPnk0z7w7jFKN8/E2JhZ50Zi4HgbFiyhE="; }; postPatch = '' @@ -37,18 +54,41 @@ buildPythonPackage { ]; propagatedBuildInputs = [ + aiohttp + click + importlib-metadata + jinja2 openai + requests python-dotenv tiktoken - importlib-metadata tokenizers - click - jinja2 - certifi - appdirs - aiohttp ]; + passthru.optional-dependencies = { + proxy = [ + apscheduler + backoff + fastapi + fastapi-sso + gunicorn + orjson + pyjwt + python-multipart + pyyaml + rq + uvicorn + ]; + extra_proxy = [ + azure-identity + azure-keyvault-secrets + google-cloud-kms + prisma + resend + streamlit + ]; + }; + # the import check phase fails trying to do a network request to openai # pythonImportsCheck = [ "litellm" ]; @@ -58,8 +98,8 @@ buildPythonPackage { meta = with lib; { description = "Use any LLM as a drop in replacement for gpt-3.5-turbo. Use Azure, OpenAI, Cohere, Anthropic, Ollama, VLLM, Sagemaker, HuggingFace, Replicate (100+ LLMs)"; homepage = "https://github.com/BerriAI/litellm"; - license = licenses.mit; changelog = "https://github.com/BerriAI/litellm/releases/tag/v${version}"; + license = licenses.mit; maintainers = with maintainers; [ happysalada ]; }; } From e9e0a20585c947e32db31ae77540e61b802c8208 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:48:07 +0100 Subject: [PATCH 08/12] python311Packages.langsmith: 0.0.83 -> 0.0.90 Diff: https://github.com/langchain-ai/langsmith-sdk/compare/refs/tags/v0.0.83...v0.0.90 Changelog: https://github.com/langchain-ai/langsmith-sdk/releases/tag/v0.0.90 --- .../development/python-modules/langsmith/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 21ee2b4ac871..72ad5e138ca9 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -1,4 +1,5 @@ { lib +, attr , buildPythonPackage , fetchFromGitHub , freezegun @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "langsmith"; - version = "0.0.83"; + version = "0.0.90"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,7 +22,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; - hash = "sha256-WRrwekh4pcn3I0U/A2Q91ePrRx2RUC3XX+z4bez0BzU="; + hash = "sha256-YZykHDu++cEoLmV9PvzowA4j2UpteFJfzr6+3VlbPME="; }; sourceRoot = "${src.name}/python"; @@ -36,6 +37,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + attr freezegun pytest-asyncio pytestCheckHook @@ -51,11 +53,17 @@ buildPythonPackage rec { "test_as_runnable_async_batch" # requires git repo "test_git_info" + # Tests require OpenAI API key + "test_chat_async_api" + "test_chat_sync_api" + "test_completions_async_api" + "test_completions_sync_api" ]; disabledTestPaths = [ # due to circular import "tests/integration_tests/test_client.py" + "tests/unit_tests/test_client.py" ]; pythonImportsCheck = [ From 4e799ea564be48634879d536178033920ac80043 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:53:04 +0100 Subject: [PATCH 09/12] python311Packages.langchain-core: 0.1.16 -> 0.1.22 --- .../python-modules/langchain-core/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/langchain-core/default.nix b/pkgs/development/python-modules/langchain-core/default.nix index 8e8309874f1e..7d2599d105b9 100644 --- a/pkgs/development/python-modules/langchain-core/default.nix +++ b/pkgs/development/python-modules/langchain-core/default.nix @@ -8,6 +8,7 @@ , langsmith , packaging , pydantic +, pythonRelaxDepsHook , pyyaml , requests , tenacity @@ -15,7 +16,7 @@ buildPythonPackage rec { pname = "langchain-core"; - version = "0.1.16"; + version = "0.1.22"; pyproject = true; disabled = pythonOlder "3.8"; @@ -23,11 +24,16 @@ buildPythonPackage rec { src = fetchPypi { pname = "langchain_core"; inherit version; - hash = "sha256-jLVG7tMYAJ7hqKOB0QgHTt3wOVrmHrJD2wDXbh4mXok="; + hash = "sha256-3qwSs+QqCLu6oqz4PV+N0tVRMlbY2vDoU+nWj/TJnXk="; }; + pythonRelaxDeps = [ + "langsmith" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -41,7 +47,9 @@ buildPythonPackage rec { tenacity ]; - pythonImportsCheck = [ "langchain_core" ]; + pythonImportsCheck = [ + "langchain_core" + ]; # PyPI source does not have tests doCheck = false; From 3fbfedb4041fa4ed223ac58c3ef2746f39c89496 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 15:53:34 +0100 Subject: [PATCH 10/12] python311Packages.langchain-community: 0.0.16 -> 0.0.19 --- .../python-modules/langchain-community/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index 0d0046b216ee..c7c134dfac08 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "langchain-community"; - version = "0.0.16"; + version = "0.0.19"; pyproject = true; disabled = pythonOlder "3.8"; @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "langchain_community"; inherit version; - hash = "sha256-wGUSqTAToG+6dnnNWhJU/4uSfN3S0fvgzERL97vfC4w="; + hash = "sha256-XRitnhiLEKq6Y2H7KnR88ptksh/7gGGTP+wJAYfKOcI="; }; nativeBuildInputs = [ From d1b43382aa31be7d9000b020c35618975e3b890a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 16:10:57 +0100 Subject: [PATCH 11/12] python311Packages.langchain: 0.1.1 -> 0.1.6 Diff: https://github.com/langchain-ai/langchain/compare/refs/tags/v0.1.1...v0.1.6 Changelog: https://github.com/langchain-ai/langchain/releases/tag/v0.1.6 --- pkgs/development/python-modules/langchain/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 18936f7a9ca5..d519748994a7 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -52,7 +52,7 @@ buildPythonPackage rec { pname = "langchain"; - version = "0.1.1"; + version = "0.1.6"; pyproject = true; disabled = pythonOlder "3.8"; @@ -61,7 +61,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-cQz4u6FeVZLNbix4pyc6ulfj+nb/tARMJniusy7Q46A="; + hash = "sha256-DMUf1dW1/Xl8OKRDb2o9NFgFE4rEgsCBZEPejGz1tQQ="; }; sourceRoot = "${src.name}/libs/langchain"; From 906e25257aa64906a1ec8e375ffaf073469ce239 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 12:19:21 +0100 Subject: [PATCH 12/12] shell-genie: relax openai --- pkgs/applications/misc/shell-genie/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/shell-genie/default.nix b/pkgs/applications/misc/shell-genie/default.nix index 9c64415132fa..dd6c723121d4 100644 --- a/pkgs/applications/misc/shell-genie/default.nix +++ b/pkgs/applications/misc/shell-genie/default.nix @@ -8,7 +8,7 @@ with python3.pkgs; buildPythonPackage rec { pname = "shell-genie"; version = "0.2.10"; - format = "pyproject"; + pyproject = true; src = fetchPypi { pname = "shell_genie"; @@ -17,6 +17,7 @@ buildPythonPackage rec { }; pythonRelaxDeps = [ + "openai" "typer" ];