From a8fd6871bc7fcd2f7c641c46dfe9de0c16108602 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sat, 26 Apr 2025 20:19:11 +0200 Subject: [PATCH 001/146] perlPackages.NetMQTTSimple: Add IO::Socket::SSL --- pkgs/top-level/perl-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 4590a9b3fd36..0a34c8806577 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -25708,6 +25708,9 @@ with self; url = "mirror://cpan/authors/id/J/JU/JUERD/Net-MQTT-Simple-1.28.tar.gz"; hash = "sha256-Sp6hB+a8IuJrUzZ4oKPMbEI7N4TsP8ROjjM5t8Vr7gM="; }; + propagatedBuildInputs = [ + IOSocketSSL + ]; meta = { description = "Minimal MQTT version 3 interface"; license = with lib.licenses; [ From e9d158c842fed0e530682dd7dd2ef587900ab82e Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Sun, 27 Apr 2025 18:55:42 +0200 Subject: [PATCH 002/146] pnpm.fetchDeps: allow overriding the pnpm version --- pkgs/development/tools/pnpm/fetch-deps/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/pnpm/fetch-deps/default.nix b/pkgs/development/tools/pnpm/fetch-deps/default.nix index 7e2b82d9b414..45a051620072 100644 --- a/pkgs/development/tools/pnpm/fetch-deps/default.nix +++ b/pkgs/development/tools/pnpm/fetch-deps/default.nix @@ -10,11 +10,15 @@ yq, }: +let + pnpm' = pnpm; +in { fetchDeps = { hash ? "", pname, + pnpm ? pnpm', pnpmWorkspaces ? [ ], prePnpmInstall ? "", pnpmInstallFlags ? [ ], @@ -52,7 +56,7 @@ cacert jq moreutils - pnpm + args.pnpm or pnpm' yq ]; @@ -109,7 +113,7 @@ passthru = { serve = callPackage ./serve.nix { - inherit pnpm; + pnpm = args.pnpm or pnpm'; pnpmDeps = finalAttrs.finalPackage; }; }; From e9c93a13161bb1bda0e5510ee43243e58562904c Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 11 May 2025 14:02:46 +0400 Subject: [PATCH 003/146] =?UTF-8?q?libsForQt5.qtpbfimageplugin:=204.0=20?= =?UTF-8?q?=E2=86=92=204.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../libraries/qtpbfimageplugin/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/qtpbfimageplugin/default.nix b/pkgs/development/libraries/qtpbfimageplugin/default.nix index 38629fe04c33..c19e971db598 100644 --- a/pkgs/development/libraries/qtpbfimageplugin/default.nix +++ b/pkgs/development/libraries/qtpbfimageplugin/default.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "qtpbfimageplugin"; - version = "4.0"; + version = "4.2"; src = fetchFromGitHub { owner = "tumic0"; repo = "QtPBFImagePlugin"; tag = version; - hash = "sha256-17mQ7aTpZhmsoAHhnueHSRTvCIHRcpWwZHZM+YUdeps="; + hash = "sha256-yk/DsLjNLqtmhvPcHDZGsNiAI1zBv1vBtgERvtNjF4I="; }; nativeBuildInputs = [ @@ -30,10 +30,10 @@ stdenv.mkDerivation rec { postPatch = '' # Fix plugin dir substituteInPlace pbfplugin.pro \ - --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" + --replace-warn "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" ''; - meta = with lib; { + meta = { description = "Qt image plugin for displaying Mapbox vector tiles"; longDescription = '' QtPBFImagePlugin is a Qt image plugin that enables applications capable of @@ -41,8 +41,8 @@ stdenv.mkDerivation rec { vector tiles without (almost) any application modifications. ''; homepage = "https://github.com/tumic0/QtPBFImagePlugin"; - license = licenses.lgpl3Only; - maintainers = with maintainers; [ sikmir ]; - platforms = platforms.unix; + license = lib.licenses.lgpl3Only; + maintainers = with lib.maintainers; [ sikmir ]; + platforms = lib.platforms.unix; }; } From c328554512a87466d746bc7180ed65897e024c30 Mon Sep 17 00:00:00 2001 From: eljamm Date: Sat, 31 May 2025 06:44:31 +0200 Subject: [PATCH 004/146] albert: 0.27.8 -> 0.28.0 --- pkgs/by-name/al/albert/package.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/al/albert/package.nix b/pkgs/by-name/al/albert/package.nix index c474a0bcc86c..e7f04a96aa5f 100644 --- a/pkgs/by-name/al/albert/package.nix +++ b/pkgs/by-name/al/albert/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + kdePackages, qt6, cmake, libqalculate, @@ -14,13 +15,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "albert"; - version = "0.27.8"; + version = "0.28.0"; src = fetchFromGitHub { owner = "albertlauncher"; repo = "albert"; tag = "v${finalAttrs.version}"; - hash = "sha256-UZJS61YeieA68PUNgudpjn1iWHCTvhXpt3uXJAkJtCg="; + hash = "sha256-ciqCNQD5S7qv9Ph6AgUpFB5Sphv6Eb1LR3Ap3bTd1EE="; fetchSubmodules = true; }; @@ -32,17 +33,20 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ + kdePackages.qtkeychain libqalculate libarchive muparser - qt6.qtbase - qt6.qtscxml - qt6.qtsvg - qt6.qtdeclarative - qt6.qtwayland - qt6.qt5compat - qt6.qttools ] + ++ (with qt6; [ + qt5compat + qtbase + qtdeclarative + qtscxml + qtsvg + qttools + qtwayland + ]) ++ (with python3Packages; [ python pybind11 From 5446ad302b58605f3a4e9c3fe588f8c3c082faf6 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sat, 31 May 2025 23:38:29 +0800 Subject: [PATCH 005/146] xwayland-satellite: 0.5.1 -> 0.6 Diff: https://github.com/Supreeeme/xwayland-satellite/compare/v0.5.1...v0.6 Changelog: https://github.com/Supreeeme/xwayland-satellite/releases/tag/v0.6 --- pkgs/by-name/xw/xwayland-satellite/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/xw/xwayland-satellite/package.nix b/pkgs/by-name/xw/xwayland-satellite/package.nix index c63af00aec55..58cb0297b115 100644 --- a/pkgs/by-name/xw/xwayland-satellite/package.nix +++ b/pkgs/by-name/xw/xwayland-satellite/package.nix @@ -13,13 +13,13 @@ rustPlatform.buildRustPackage rec { pname = "xwayland-satellite"; - version = "0.5.1"; + version = "0.6"; src = fetchFromGitHub { owner = "Supreeeme"; repo = "xwayland-satellite"; tag = "v${version}"; - hash = "sha256-/hBM43/Gd0/tW+egrhlWgOIISeJxEs2uAOIYVpfDKeU="; + hash = "sha256-IiLr1alzKFIy5tGGpDlabQbe6LV1c9ABvkH6T5WmyRI="; }; postPatch = '' @@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec { ''; useFetchCargoVendor = true; - cargoHash = "sha256-1tt7YNornw9U9FRdsRkdWx3Al3FZtvtCBXn9Pln+gk4="; + cargoHash = "sha256-R3xXyXpHQw/Vh5Y4vFUl7n7jwBEEqwUCIZGAf9+SY1M="; nativeBuildInputs = [ makeBinaryWrapper From 7137985c3993817bc82838174ec0b4d92155557c Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 16:31:18 -0700 Subject: [PATCH 006/146] llm: move to by-name --- pkgs/by-name/ll/llm/package.nix | 3 +++ pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 pkgs/by-name/ll/llm/package.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix new file mode 100644 index 000000000000..0898381b470b --- /dev/null +++ b/pkgs/by-name/ll/llm/package.nix @@ -0,0 +1,3 @@ +{ python3Packages }: + +python3Packages.toPythonApplication python3Packages.llm diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ebdcccdb165..8aa00063f483 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3519,8 +3519,6 @@ with pkgs; ocamlPackages = ocaml-ng.ocamlPackages_4_14; }; - llm = with python3Packages; toPythonApplication llm; - loganalyzer = libsForQt5.callPackage ../development/tools/loganalyzer { }; logstash7 = callPackage ../tools/misc/logstash/7.x.nix { From 98756a6482a81e624f9815a547cbc9309170adae Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 16:46:11 -0700 Subject: [PATCH 007/146] llm: add enable-llm-anthropic override --- pkgs/by-name/ll/llm/package.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 0898381b470b..e6f75b05e21d 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -1,3 +1,17 @@ -{ python3Packages }: +{ + lib, + python3Packages, + enable-llm-anthropic ? false, +}: -python3Packages.toPythonApplication python3Packages.llm +let + inherit (python3Packages) toPythonApplication llm llm-anthropic; +in + +toPythonApplication ( + llm.overrideAttrs (finalAttrs: { + propagatedBuildInputs = + (finalAttrs.propagatedBuildInputs or []) + ++ lib.optionals enable-llm-anthropic [ llm-anthropic ]; + }) +) From b8a7b821f7b011381126ebc84a1abc834041263d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 17:00:40 -0700 Subject: [PATCH 008/146] llm: add enable-llm-cmd override --- pkgs/by-name/ll/llm/package.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index e6f75b05e21d..6b2e8d0ab4b4 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -2,16 +2,23 @@ lib, python3Packages, enable-llm-anthropic ? false, + enable-llm-cmd ? false, }: let - inherit (python3Packages) toPythonApplication llm llm-anthropic; + inherit (python3Packages) + toPythonApplication + llm + llm-anthropic + llm-cmd + ; in toPythonApplication ( llm.overrideAttrs (finalAttrs: { propagatedBuildInputs = - (finalAttrs.propagatedBuildInputs or []) - ++ lib.optionals enable-llm-anthropic [ llm-anthropic ]; + (finalAttrs.propagatedBuildInputs or [ ]) + ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] + ++ lib.optionals enable-llm-cmd [ llm-cmd ]; }) ) From ab5c974d2ed8f556b9aca522a7a3105dcc8eef4a Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 17:07:36 -0700 Subject: [PATCH 009/146] llm: add enable-llm-gemini override --- pkgs/by-name/ll/llm/package.nix | 5 ++++- pkgs/development/python-modules/llm-gemini/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 6b2e8d0ab4b4..449547b3c152 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -3,6 +3,7 @@ python3Packages, enable-llm-anthropic ? false, enable-llm-cmd ? false, + enable-llm-gemini ? false, }: let @@ -11,6 +12,7 @@ let llm llm-anthropic llm-cmd + llm-gemini ; in @@ -19,6 +21,7 @@ toPythonApplication ( propagatedBuildInputs = (finalAttrs.propagatedBuildInputs or [ ]) ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] - ++ lib.optionals enable-llm-cmd [ llm-cmd ]; + ++ lib.optionals enable-llm-cmd [ llm-cmd ] + ++ lib.optionals enable-llm-gemini [ llm-gemini ]; }) ) diff --git a/pkgs/development/python-modules/llm-gemini/default.nix b/pkgs/development/python-modules/llm-gemini/default.nix index 0d0c33a4c446..7fa90627c6b7 100644 --- a/pkgs/development/python-modules/llm-gemini/default.nix +++ b/pkgs/development/python-modules/llm-gemini/default.nix @@ -27,10 +27,10 @@ buildPythonPackage rec { build-system = [ setuptools + llm ]; dependencies = [ - llm httpx ijson ]; From 85868f71a08ae0a2e29f7c121179dbdbef754cce Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 17:13:00 -0700 Subject: [PATCH 010/146] llm: add enable-llm-gguf override --- pkgs/by-name/ll/llm/package.nix | 5 ++++- pkgs/development/python-modules/llm-gguf/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 449547b3c152..b9d2b60e6370 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -4,6 +4,7 @@ enable-llm-anthropic ? false, enable-llm-cmd ? false, enable-llm-gemini ? false, + enable-llm-gguf ? false, }: let @@ -13,6 +14,7 @@ let llm-anthropic llm-cmd llm-gemini + llm-gguf ; in @@ -22,6 +24,7 @@ toPythonApplication ( (finalAttrs.propagatedBuildInputs or [ ]) ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] ++ lib.optionals enable-llm-cmd [ llm-cmd ] - ++ lib.optionals enable-llm-gemini [ llm-gemini ]; + ++ lib.optionals enable-llm-gemini [ llm-gemini ] + ++ lib.optionals enable-llm-gguf [ llm-gguf ]; }) ) diff --git a/pkgs/development/python-modules/llm-gguf/default.nix b/pkgs/development/python-modules/llm-gguf/default.nix index 76a01159b2b8..386c0c11b392 100644 --- a/pkgs/development/python-modules/llm-gguf/default.nix +++ b/pkgs/development/python-modules/llm-gguf/default.nix @@ -27,12 +27,12 @@ buildPythonPackage rec { build-system = [ setuptools + llm ]; dependencies = [ httpx llama-cpp-python - llm ]; pythonImportsCheck = [ "llm_gguf" ]; From cf62949f31624f22dfa8ed76a8fc370358d3e0fb Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 7 May 2025 17:19:55 -0700 Subject: [PATCH 011/146] llm: add enable-llm-jq override --- pkgs/by-name/ll/llm/package.nix | 5 ++++- pkgs/development/python-modules/llm-jq/default.nix | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index b9d2b60e6370..0118f0764182 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -5,6 +5,7 @@ enable-llm-cmd ? false, enable-llm-gemini ? false, enable-llm-gguf ? false, + enable-llm-jq ? false, }: let @@ -15,6 +16,7 @@ let llm-cmd llm-gemini llm-gguf + llm-jq ; in @@ -25,6 +27,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] ++ lib.optionals enable-llm-cmd [ llm-cmd ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] - ++ lib.optionals enable-llm-gguf [ llm-gguf ]; + ++ lib.optionals enable-llm-gguf [ llm-gguf ] + ++ lib.optionals enable-llm-jq [ llm-jq ]; }) ) diff --git a/pkgs/development/python-modules/llm-jq/default.nix b/pkgs/development/python-modules/llm-jq/default.nix index 14ab4046712e..dab2b6727c9e 100644 --- a/pkgs/development/python-modules/llm-jq/default.nix +++ b/pkgs/development/python-modules/llm-jq/default.nix @@ -21,12 +21,11 @@ buildPythonPackage rec { build-system = [ setuptools - ]; - - dependencies = [ llm ]; + dependencies = [ ]; + pythonImportsCheck = [ "llm_jq" ]; passthru.tests = { From 96bde7a7d37aa6809ad20c7a1378ea02901b95ff Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 08:54:02 -0700 Subject: [PATCH 012/146] llm: add enable-llm-ollama override --- pkgs/by-name/ll/llm/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 0118f0764182..1da85212037c 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -6,6 +6,7 @@ enable-llm-gemini ? false, enable-llm-gguf ? false, enable-llm-jq ? false, + enable-llm-ollama ? false, }: let @@ -17,6 +18,7 @@ let llm-gemini llm-gguf llm-jq + llm-ollama ; in @@ -28,6 +30,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-cmd [ llm-cmd ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] - ++ lib.optionals enable-llm-jq [ llm-jq ]; + ++ lib.optionals enable-llm-jq [ llm-jq ] + ++ lib.optionals enable-llm-ollama [ llm-ollama ]; }) ) From c48e583dd99b50446138ff72f8cbed7e8903a966 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 08:58:19 -0700 Subject: [PATCH 013/146] llm: add enable-llm-openai-plugin override --- pkgs/by-name/ll/llm/package.nix | 5 ++++- .../development/python-modules/llm-openai-plugin/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 1da85212037c..f3d5fce75228 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -7,6 +7,7 @@ enable-llm-gguf ? false, enable-llm-jq ? false, enable-llm-ollama ? false, + enable-llm-openai-plugin ? false, }: let @@ -19,6 +20,7 @@ let llm-gguf llm-jq llm-ollama + llm-openai-plugin ; in @@ -31,6 +33,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-jq [ llm-jq ] - ++ lib.optionals enable-llm-ollama [ llm-ollama ]; + ++ lib.optionals enable-llm-ollama [ llm-ollama ] + ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ]; }) ) diff --git a/pkgs/development/python-modules/llm-openai-plugin/default.nix b/pkgs/development/python-modules/llm-openai-plugin/default.nix index 76f13696a877..d978142bd1c7 100644 --- a/pkgs/development/python-modules/llm-openai-plugin/default.nix +++ b/pkgs/development/python-modules/llm-openai-plugin/default.nix @@ -27,10 +27,10 @@ buildPythonPackage rec { build-system = [ setuptools + llm ]; dependencies = [ - llm openai ]; From 31c73863a7187894251f4ba2a724bf5d4a114565 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 09:47:08 -0700 Subject: [PATCH 014/146] python3Packages.llm-mistral: init at 0.12 --- pkgs/by-name/ll/llm/package.nix | 3 + .../python-modules/llm-mistral/default.nix | 58 +++++++++++++++++++ .../llm-mistral/tests/llm-plugin.nix | 22 +++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 85 insertions(+) create mode 100644 pkgs/development/python-modules/llm-mistral/default.nix create mode 100644 pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index f3d5fce75228..ec00b824c335 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -6,6 +6,7 @@ enable-llm-gemini ? false, enable-llm-gguf ? false, enable-llm-jq ? false, + enable-llm-mistral ? false, enable-llm-ollama ? false, enable-llm-openai-plugin ? false, }: @@ -19,6 +20,7 @@ let llm-gemini llm-gguf llm-jq + llm-mistral llm-ollama llm-openai-plugin ; @@ -33,6 +35,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-jq [ llm-jq ] + ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ]; }) diff --git a/pkgs/development/python-modules/llm-mistral/default.nix b/pkgs/development/python-modules/llm-mistral/default.nix new file mode 100644 index 000000000000..25af109cc023 --- /dev/null +++ b/pkgs/development/python-modules/llm-mistral/default.nix @@ -0,0 +1,58 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + httpx, + httpx-sse, + llm, + pytestCheckHook, + pytest-asyncio, + pytest-httpx, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-mistral"; + version = "0.12"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-mistral"; + tag = version; + hash = "sha256-oNA5NFI4BZMG/V+eSHfuF/JKBX2Xr/L8EK+mf7KjPD0="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ + httpx + httpx-sse + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + pytest-httpx + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_mistral" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin providing access to Mistral models using the Mistral API"; + homepage = "https://github.com/simonw/llm-mistral"; + changelog = "https://github.com/simonw/llm-mistral/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix new file mode 100644 index 000000000000..23077de3b85e --- /dev/null +++ b/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-mistral + ]); +in +runCommand "llm-mistral-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-mistral")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c4c9004ae04d..16103e129f42 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8304,6 +8304,8 @@ self: super: with self; { llm-jq = callPackage ../development/python-modules/llm-jq { }; + llm-mistral = callPackage ../development/python-modules/llm-mistral { }; + llm-ollama = callPackage ../development/python-modules/llm-ollama { }; llm-openai-plugin = callPackage ../development/python-modules/llm-openai-plugin { }; From 12bcd7aa10ed3475f8bde0ffb72e05969e2c7937 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 10:02:32 -0700 Subject: [PATCH 015/146] python3Packages.llm-command-r: init at 0.3.1 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../python-modules/llm-command-r/default.nix | 52 +++++++++++++++++++ .../llm-command-r/tests/llm-plugin.nix | 22 ++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 79 insertions(+) create mode 100644 pkgs/development/python-modules/llm-command-r/default.nix create mode 100644 pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index ec00b824c335..42c2b14ede81 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -3,6 +3,7 @@ python3Packages, enable-llm-anthropic ? false, enable-llm-cmd ? false, + enable-llm-command-r ? false, enable-llm-gemini ? false, enable-llm-gguf ? false, enable-llm-jq ? false, @@ -17,6 +18,7 @@ let llm llm-anthropic llm-cmd + llm-command-r llm-gemini llm-gguf llm-jq @@ -32,6 +34,7 @@ toPythonApplication ( (finalAttrs.propagatedBuildInputs or [ ]) ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] ++ lib.optionals enable-llm-cmd [ llm-cmd ] + ++ lib.optionals enable-llm-cmd [ llm-command-r ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-jq [ llm-jq ] diff --git a/pkgs/development/python-modules/llm-command-r/default.nix b/pkgs/development/python-modules/llm-command-r/default.nix new file mode 100644 index 000000000000..c6d894cfc39b --- /dev/null +++ b/pkgs/development/python-modules/llm-command-r/default.nix @@ -0,0 +1,52 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + cohere, + pytestCheckHook, + pytest-recording, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-command-r"; + version = "0.3.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-command-r"; + tag = version; + hash = "sha256-PxICRds9NJQP64HwoL7Oxd39yaIrMdAyQEbhaumJCgo="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ cohere ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-recording + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_command_r" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "Access the Cohere Command R family of models"; + homepage = "https://github.com/simonw/llm-command-r"; + changelog = "https://github.com/simonw/llm-command-r/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix new file mode 100644 index 000000000000..a57802a8ad08 --- /dev/null +++ b/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-anthropic + ]); +in +runCommand "llm-anthropic-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-anthropic")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16103e129f42..6249fa645fd5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8298,6 +8298,8 @@ self: super: with self; { llm-cmd = callPackage ../development/python-modules/llm-cmd { }; + llm-command-r = callPackage ../development/python-modules/llm-command-r { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From 41ca780911b4422bd2b41518fc8815d09a4ee58c Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 12:08:19 -0700 Subject: [PATCH 016/146] python3Packages.llm-grok: init at 1.0.1 --- pkgs/by-name/ll/llm/package.nix | 3 + .../python-modules/llm-grok/default.nix | 58 +++++++++++++++++++ .../llm-grok/tests/llm-plugin.nix | 22 +++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 85 insertions(+) create mode 100644 pkgs/development/python-modules/llm-grok/default.nix create mode 100644 pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 42c2b14ede81..dd44a626b350 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -5,6 +5,7 @@ enable-llm-cmd ? false, enable-llm-command-r ? false, enable-llm-gemini ? false, + enable-llm-grok ? false, enable-llm-gguf ? false, enable-llm-jq ? false, enable-llm-mistral ? false, @@ -21,6 +22,7 @@ let llm-command-r llm-gemini llm-gguf + llm-grok llm-jq llm-mistral llm-ollama @@ -37,6 +39,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-cmd [ llm-command-r ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] + ++ lib.optionals enable-llm-grok [ llm-grok ] ++ lib.optionals enable-llm-jq [ llm-jq ] ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] diff --git a/pkgs/development/python-modules/llm-grok/default.nix b/pkgs/development/python-modules/llm-grok/default.nix new file mode 100644 index 000000000000..f326866798a0 --- /dev/null +++ b/pkgs/development/python-modules/llm-grok/default.nix @@ -0,0 +1,58 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + httpx, + httpx-sse, + rich, + pytestCheckHook, + pytest-httpx, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-grok"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Hiepler"; + repo = "llm-grok"; + tag = "v${version}"; + hash = "sha256-OeeU/53XKucLCtGvnl5RWc/QqF0TprB/SO8pnnK5fdw="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ + httpx + httpx-sse + rich + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-httpx + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_grok" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin providing access to Grok models using the xAI API"; + homepage = "https://github.com/Hiepler/llm-grok"; + changelog = "https://github.com/Hiepler/llm-grok/releases/tag/${src.tag}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix new file mode 100644 index 000000000000..5ea012b0de7f --- /dev/null +++ b/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-grok + ]); +in +runCommand "llm-grok-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-grok")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6249fa645fd5..c60ff6aa2173 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8304,6 +8304,8 @@ self: super: with self; { llm-gguf = callPackage ../development/python-modules/llm-gguf { }; + llm-grok = callPackage ../development/python-modules/llm-grok { }; + llm-jq = callPackage ../development/python-modules/llm-jq { }; llm-mistral = callPackage ../development/python-modules/llm-mistral { }; From 97b709d4da41e48ce5772e2ef741fb2682c58135 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 12:17:08 -0700 Subject: [PATCH 017/146] python3Packages.llm-groq: init at 0.8 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../python-modules/llm-groq/default.nix | 43 +++++++++++++++++++ .../llm-groq/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 70 insertions(+) create mode 100644 pkgs/development/python-modules/llm-groq/default.nix create mode 100644 pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index dd44a626b350..6eb16f997dfc 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -6,6 +6,7 @@ enable-llm-command-r ? false, enable-llm-gemini ? false, enable-llm-grok ? false, + enable-llm-groq ? false, enable-llm-gguf ? false, enable-llm-jq ? false, enable-llm-mistral ? false, @@ -23,6 +24,7 @@ let llm-gemini llm-gguf llm-grok + llm-groq llm-jq llm-mistral llm-ollama @@ -40,6 +42,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-grok [ llm-grok ] + ++ lib.optionals enable-llm-groq [ llm-groq ] ++ lib.optionals enable-llm-jq [ llm-jq ] ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] diff --git a/pkgs/development/python-modules/llm-groq/default.nix b/pkgs/development/python-modules/llm-groq/default.nix new file mode 100644 index 000000000000..a3f02f2e0b8a --- /dev/null +++ b/pkgs/development/python-modules/llm-groq/default.nix @@ -0,0 +1,43 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + groq, +}: + +buildPythonPackage rec { + pname = "llm-groq"; + version = "0.8"; + pyproject = true; + + src = fetchFromGitHub { + owner = "angerman"; + repo = "llm-groq"; + tag = "v${version}"; + hash = "sha256-sZ5d9w43NvypaPrebwZ5BLgRaCHAhd7gBU6uHEdUaF4="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ groq ]; + + pythonImportsCheck = [ "llm_groq" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin providing access to Groqcloud models."; + homepage = "https://github.com/angerman/llm-groq"; + changelog = "https://github.com/angerman/llm-groq/releases/tag/${src.tag}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix new file mode 100644 index 000000000000..5d0ce63e91db --- /dev/null +++ b/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-groq + ]); +in +runCommand "llm-groq-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-groq")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c60ff6aa2173..d55248fa3536 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8306,6 +8306,8 @@ self: super: with self; { llm-grok = callPackage ../development/python-modules/llm-grok { }; + llm-groq = callPackage ../development/python-modules/llm-groq { }; + llm-jq = callPackage ../development/python-modules/llm-jq { }; llm-mistral = callPackage ../development/python-modules/llm-mistral { }; From 31d4b6f6cd1f5d8434b7b70fc6054ac146e04687 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 13:29:24 -0700 Subject: [PATCH 018/146] python3Packages.llm-openrouter: init at 0.4.1 --- pkgs/by-name/ll/llm/package.nix | 5 +- .../python-modules/llm-openrouter/default.nix | 58 +++++++++++++++++++ .../llm-openrouter/tests/llm-plugin.nix | 22 +++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/llm-openrouter/default.nix create mode 100644 pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 6eb16f997dfc..19fb8dbf934c 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -12,6 +12,7 @@ enable-llm-mistral ? false, enable-llm-ollama ? false, enable-llm-openai-plugin ? false, + enable-llm-openrouter ? false, }: let @@ -29,6 +30,7 @@ let llm-mistral llm-ollama llm-openai-plugin + llm-openrouter ; in @@ -46,6 +48,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-jq [ llm-jq ] ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] - ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ]; + ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] + ++ lib.optionals enable-llm-openrouter [ llm-openrouter ]; }) ) diff --git a/pkgs/development/python-modules/llm-openrouter/default.nix b/pkgs/development/python-modules/llm-openrouter/default.nix new file mode 100644 index 000000000000..bb6913547872 --- /dev/null +++ b/pkgs/development/python-modules/llm-openrouter/default.nix @@ -0,0 +1,58 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + httpx, + openai, + pytestCheckHook, + inline-snapshot, + pytest-recording, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "openrouter"; + version = "0.4.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-openrouter"; + tag = version; + hash = "sha256-ojBkyXqEaqTcOv7mzTWL5Ihhb50zeVzeQZNA6DySuVg="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ + httpx + openai + ]; + + nativeCheckInputs = [ + pytestCheckHook + inline-snapshot + pytest-recording + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_openrouter" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin for models hosted by OpenRouter"; + homepage = "https://github.com/simonw/llm-openrouter"; + changelog = "https://github.com/simonw/llm-openrouter/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix new file mode 100644 index 000000000000..30e9fc6d5511 --- /dev/null +++ b/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-openrouter + ]); +in +runCommand "llm-openrouter-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-openrouter")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d55248fa3536..de9cd0b6d90e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8316,6 +8316,8 @@ self: super: with self; { llm-openai-plugin = callPackage ../development/python-modules/llm-openai-plugin { }; + llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llmx = callPackage ../development/python-modules/llmx { }; llvmlite = callPackage ../development/python-modules/llvmlite { From d8b57ca3c280de1098e2165ea6beb48213675a5d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 13:44:23 -0700 Subject: [PATCH 019/146] python3Packages.llm-deepseek: init at 0.1.6 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../python-modules/llm-deepseek/default.nix | 43 +++++++++++++++++++ .../llm-deepseek/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 70 insertions(+) create mode 100644 pkgs/development/python-modules/llm-deepseek/default.nix create mode 100644 pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 19fb8dbf934c..5010ccf21837 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -4,6 +4,7 @@ enable-llm-anthropic ? false, enable-llm-cmd ? false, enable-llm-command-r ? false, + enable-llm-deepseek ? false, enable-llm-gemini ? false, enable-llm-grok ? false, enable-llm-groq ? false, @@ -22,6 +23,7 @@ let llm-anthropic llm-cmd llm-command-r + llm-deepseek llm-gemini llm-gguf llm-grok @@ -41,6 +43,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] ++ lib.optionals enable-llm-cmd [ llm-cmd ] ++ lib.optionals enable-llm-cmd [ llm-command-r ] + ++ lib.optionals enable-llm-deepseek [ llm-deepseek ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-grok [ llm-grok ] diff --git a/pkgs/development/python-modules/llm-deepseek/default.nix b/pkgs/development/python-modules/llm-deepseek/default.nix new file mode 100644 index 000000000000..a7a5333c682a --- /dev/null +++ b/pkgs/development/python-modules/llm-deepseek/default.nix @@ -0,0 +1,43 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + groq, +}: + +buildPythonPackage rec { + pname = "llm-deepseek"; + version = "0.1.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "abrasumente233"; + repo = "llm-deepseek"; + tag = version; + hash = "sha256-yrNvIGnU9Q/0H786DsM0wGEwfxZYIk8IXhqC4mWaQAA="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ ]; + + pythonImportsCheck = [ "llm_deepseek" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin providing access to Deepseek models."; + homepage = "https://github.com/abrasumente233/llm-deepseek"; + changelog = "https://github.com/abrasumente233/llm-deepseek/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix new file mode 100644 index 000000000000..f7a9ac60837c --- /dev/null +++ b/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-deepseek + ]); +in +runCommand "llm-deepseek-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-deepseek")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index de9cd0b6d90e..19405f0d393f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8300,6 +8300,8 @@ self: super: with self; { llm-command-r = callPackage ../development/python-modules/llm-command-r { }; + llm-deepseek = callPackage ../development/python-modules/llm-deepseek { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From b271e2cad2323d7b777a17eb8efdf77401f5122f Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 13:52:49 -0700 Subject: [PATCH 020/146] python3Packages.llm-venice: init at 0.6.0 --- pkgs/by-name/ll/llm/package.nix | 5 ++- .../python-modules/llm-venice/default.nix | 45 +++++++++++++++++++ .../llm-venice/tests/llm-plugin.nix | 22 +++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/llm-venice/default.nix create mode 100644 pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 5010ccf21837..1e918f81356d 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -14,6 +14,7 @@ enable-llm-ollama ? false, enable-llm-openai-plugin ? false, enable-llm-openrouter ? false, + enable-llm-venice ? false, }: let @@ -33,6 +34,7 @@ let llm-ollama llm-openai-plugin llm-openrouter + llm-venice ; in @@ -52,6 +54,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] - ++ lib.optionals enable-llm-openrouter [ llm-openrouter ]; + ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] + ++ lib.optionals enable-llm-venice [ llm-venice ]; }) ) diff --git a/pkgs/development/python-modules/llm-venice/default.nix b/pkgs/development/python-modules/llm-venice/default.nix new file mode 100644 index 000000000000..a7e4ad7264ac --- /dev/null +++ b/pkgs/development/python-modules/llm-venice/default.nix @@ -0,0 +1,45 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-venice"; + version = "0.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ar-jan"; + repo = "llm-venice"; + tag = version; + hash = "sha256-fHCAERIFhuovo1f+jTG6L4C/Rql8tdHZG/7p5fBLkH0="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ ]; + + # Reaches out to the real API + doCheck = false; + + pythonImportsCheck = [ "llm_venice" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin to access models available via the Venice API"; + homepage = "https://github.com/ar-jan/llm-venice"; + changelog = "https://github.com/ar-jan/llm-venice/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix new file mode 100644 index 000000000000..5648d9a45703 --- /dev/null +++ b/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-venice + ]); +in +runCommand "llm-venice-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-venice")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 19405f0d393f..06d1b4c68179 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8320,6 +8320,8 @@ self: super: with self; { llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llm-venice = callPackage ../development/python-modules/llm-venice { }; + llmx = callPackage ../development/python-modules/llmx { }; llvmlite = callPackage ../development/python-modules/llvmlite { From 9c246b23edbfe8eafcab3d05fcd08584e5d5b3f4 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:11:12 -0700 Subject: [PATCH 021/146] python3Packages.llm-video-frames: init at 0.1 --- pkgs/by-name/ll/llm/package.nix | 5 ++- .../llm-video-frames/default.nix | 41 +++++++++++++++++++ .../llm-video-frames/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/llm-video-frames/default.nix create mode 100644 pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 1e918f81356d..03e745890117 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -15,6 +15,7 @@ enable-llm-openai-plugin ? false, enable-llm-openrouter ? false, enable-llm-venice ? false, + enable-llm-video-frames ? false, }: let @@ -35,6 +36,7 @@ let llm-openai-plugin llm-openrouter llm-venice + llm-video-frames ; in @@ -55,6 +57,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] - ++ lib.optionals enable-llm-venice [ llm-venice ]; + ++ lib.optionals enable-llm-venice [ llm-venice ] + ++ lib.optionals enable-llm-video-frames [ llm-video-frames ]; }) ) diff --git a/pkgs/development/python-modules/llm-video-frames/default.nix b/pkgs/development/python-modules/llm-video-frames/default.nix new file mode 100644 index 000000000000..5572eaad4ab6 --- /dev/null +++ b/pkgs/development/python-modules/llm-video-frames/default.nix @@ -0,0 +1,41 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-video-frames"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-video-frames"; + tag = version; + hash = "sha256-brTyBymoFuvSQzsD/4aWzFGCrh3yEmWbpsUNGKT9dcU="; + }; + + build-system = [ + setuptools + llm + ]; + dependencies = [ ]; + + pythonImportsCheck = [ "llm_video_frames" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin to turn a video into individual frames"; + homepage = "https://github.com/simonw/llm-video-frames"; + changelog = "https://github.com/simonw/llm-video-frames/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix new file mode 100644 index 000000000000..0d72352fe75d --- /dev/null +++ b/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-video-frames + ]); +in +runCommand "llm-video-frames-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-video-frames")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 06d1b4c68179..3934fc840e47 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8322,6 +8322,8 @@ self: super: with self; { llm-venice = callPackage ../development/python-modules/llm-venice { }; + llm-video-frames = callPackage ../development/python-modules/llm-video-frames { }; + llmx = callPackage ../development/python-modules/llmx { }; llvmlite = callPackage ../development/python-modules/llvmlite { From d5a30a5a482e8ffcfb7ed58045c293ca8d6fb37b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:23:48 -0700 Subject: [PATCH 022/146] python3Packages.llm-templates-github: init at 0.1 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../llm-templates-github/default.nix | 41 +++++++++++++++++++ .../llm-templates-github/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/llm-templates-github/default.nix create mode 100644 pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 03e745890117..1038d798f2b3 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -14,6 +14,7 @@ enable-llm-ollama ? false, enable-llm-openai-plugin ? false, enable-llm-openrouter ? false, + enable-llm-templates-github ? false, enable-llm-venice ? false, enable-llm-video-frames ? false, }: @@ -35,6 +36,7 @@ let llm-ollama llm-openai-plugin llm-openrouter + llm-templates-github llm-venice llm-video-frames ; @@ -57,6 +59,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] + ++ lib.optionals enable-llm-templates-github [ llm-templates-github ] ++ lib.optionals enable-llm-venice [ llm-venice ] ++ lib.optionals enable-llm-video-frames [ llm-video-frames ]; }) diff --git a/pkgs/development/python-modules/llm-templates-github/default.nix b/pkgs/development/python-modules/llm-templates-github/default.nix new file mode 100644 index 000000000000..f5e7d66b0f01 --- /dev/null +++ b/pkgs/development/python-modules/llm-templates-github/default.nix @@ -0,0 +1,41 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-templates-github"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-templates-github"; + tag = version; + hash = "sha256-SFXrvpKrvfIP0JmXQt6OZ52kne4AEtiggbshyac9XQc="; + }; + + build-system = [ + setuptools + llm + ]; + dependencies = [ ]; + + pythonImportsCheck = [ "llm_templates_github" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "Load LLM templates from GitHub repositories"; + homepage = "https://github.com/simonw/llm-templates-github"; + changelog = "https://github.com/simonw/llm-templates-github/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix new file mode 100644 index 000000000000..a9569f069638 --- /dev/null +++ b/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-templates-github + ]); +in +runCommand "llm-templates-github-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-templates-github")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3934fc840e47..b4b89e9cb297 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8320,6 +8320,8 @@ self: super: with self; { llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llm-templates-github = callPackage ../development/python-modules/llm-templates-github { }; + llm-venice = callPackage ../development/python-modules/llm-venice { }; llm-video-frames = callPackage ../development/python-modules/llm-video-frames { }; From 56df419440c70d8af8ec2a1349d8bf509b0690ff Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:27:46 -0700 Subject: [PATCH 023/146] python3Packages.llm-templates-fabric: init at 0.2 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../llm-templates-fabric/default.nix | 41 +++++++++++++++++++ .../llm-templates-fabric/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/llm-templates-fabric/default.nix create mode 100644 pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 1038d798f2b3..dadb591f64c5 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -14,6 +14,7 @@ enable-llm-ollama ? false, enable-llm-openai-plugin ? false, enable-llm-openrouter ? false, + enable-llm-templates-fabric ? false, enable-llm-templates-github ? false, enable-llm-venice ? false, enable-llm-video-frames ? false, @@ -36,6 +37,7 @@ let llm-ollama llm-openai-plugin llm-openrouter + llm-templates-fabric llm-templates-github llm-venice llm-video-frames @@ -59,6 +61,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] + ++ lib.optionals enable-llm-templates-fabric [ llm-templates-fabric ] ++ lib.optionals enable-llm-templates-github [ llm-templates-github ] ++ lib.optionals enable-llm-venice [ llm-venice ] ++ lib.optionals enable-llm-video-frames [ llm-video-frames ]; diff --git a/pkgs/development/python-modules/llm-templates-fabric/default.nix b/pkgs/development/python-modules/llm-templates-fabric/default.nix new file mode 100644 index 000000000000..0bbc11af790a --- /dev/null +++ b/pkgs/development/python-modules/llm-templates-fabric/default.nix @@ -0,0 +1,41 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-templates-fabric"; + version = "0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-templates-fabric"; + tag = version; + hash = "sha256-tfkSjeT9WstUsNCtVr3fMzqELFCtfYphqf3xFGvHaV0="; + }; + + build-system = [ + setuptools + llm + ]; + dependencies = [ ]; + + pythonImportsCheck = [ "llm_templates_fabric" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "Load LLM templates from Fabric"; + homepage = "https://github.com/simonw/llm-templates-fabric"; + changelog = "https://github.com/simonw/llm-templates-fabric/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix new file mode 100644 index 000000000000..b00bdfbcaa9e --- /dev/null +++ b/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-templates-fabric + ]); +in +runCommand "llm-templates-fabric-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-templates-fabric")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b4b89e9cb297..defa383199f3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8320,6 +8320,8 @@ self: super: with self; { llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llm-templates-fabric = callPackage ../development/python-modules/llm-templates-fabric { }; + llm-templates-github = callPackage ../development/python-modules/llm-templates-github { }; llm-venice = callPackage ../development/python-modules/llm-venice { }; From b0f2c846c9a7790b722901459abd8acb537b6185 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:33:03 -0700 Subject: [PATCH 024/146] python3Packages.llm-hacker-news: init at 0.1.1 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../llm-hacker-news/default.nix | 41 +++++++++++++++++++ .../llm-hacker-news/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/llm-hacker-news/default.nix create mode 100644 pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index dadb591f64c5..82af6c90a114 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -9,6 +9,7 @@ enable-llm-grok ? false, enable-llm-groq ? false, enable-llm-gguf ? false, + enable-llm-hacker-news ? false, enable-llm-jq ? false, enable-llm-mistral ? false, enable-llm-ollama ? false, @@ -32,6 +33,7 @@ let llm-gguf llm-grok llm-groq + llm-hacker-news llm-jq llm-mistral llm-ollama @@ -56,6 +58,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-grok [ llm-grok ] ++ lib.optionals enable-llm-groq [ llm-groq ] + ++ lib.optionals enable-llm-hacker-news [ llm-hacker-news ] ++ lib.optionals enable-llm-jq [ llm-jq ] ++ lib.optionals enable-llm-mistral [ llm-mistral ] ++ lib.optionals enable-llm-ollama [ llm-ollama ] diff --git a/pkgs/development/python-modules/llm-hacker-news/default.nix b/pkgs/development/python-modules/llm-hacker-news/default.nix new file mode 100644 index 000000000000..86e390b73303 --- /dev/null +++ b/pkgs/development/python-modules/llm-hacker-news/default.nix @@ -0,0 +1,41 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-hacker-news"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-hacker-news"; + tag = version; + hash = "sha256-pywx9TAN/mnGR6Vv6YsPhLO4R5Geagw/bcydQjvTH5s="; + }; + + build-system = [ + setuptools + llm + ]; + dependencies = [ ]; + + pythonImportsCheck = [ "llm_hacker_news" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin for pulling content from Hacker News"; + homepage = "https://github.com/simonw/llm-hacker-news"; + changelog = "https://github.com/simonw/llm-hacker-news/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix new file mode 100644 index 000000000000..85311225866a --- /dev/null +++ b/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-hacker-news + ]); +in +runCommand "llm-hacker-news-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-hacker-news")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index defa383199f3..cef6c0f043c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8310,6 +8310,8 @@ self: super: with self; { llm-groq = callPackage ../development/python-modules/llm-groq { }; + llm-hacker-news = callPackage ../development/python-modules/llm-hacker-news { }; + llm-jq = callPackage ../development/python-modules/llm-jq { }; llm-mistral = callPackage ../development/python-modules/llm-mistral { }; From 68ec32a1bb776d0fbc08556c769785c57326ba53 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:41:14 -0700 Subject: [PATCH 025/146] python3Packages.llm-fragments-github: init at 0.3 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../llm-fragments-github/default.nix | 41 +++++++++++++++++++ .../llm-fragments-github/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 68 insertions(+) create mode 100644 pkgs/development/python-modules/llm-fragments-github/default.nix create mode 100644 pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 82af6c90a114..4e67480d7d64 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -5,6 +5,7 @@ enable-llm-cmd ? false, enable-llm-command-r ? false, enable-llm-deepseek ? false, + enable-llm-fragments-github ? false, enable-llm-gemini ? false, enable-llm-grok ? false, enable-llm-groq ? false, @@ -29,6 +30,7 @@ let llm-cmd llm-command-r llm-deepseek + llm-fragments-github llm-gemini llm-gguf llm-grok @@ -54,6 +56,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-cmd [ llm-cmd ] ++ lib.optionals enable-llm-cmd [ llm-command-r ] ++ lib.optionals enable-llm-deepseek [ llm-deepseek ] + ++ lib.optionals enable-llm-fragments-github [ llm-fragments-github ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-grok [ llm-grok ] diff --git a/pkgs/development/python-modules/llm-fragments-github/default.nix b/pkgs/development/python-modules/llm-fragments-github/default.nix new file mode 100644 index 000000000000..67af612c7a55 --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-github/default.nix @@ -0,0 +1,41 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, +}: + +buildPythonPackage rec { + pname = "llm-fragments-github"; + version = "0.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-fragments-github"; + tag = version; + hash = "sha256-+MNFj7auB/dUSIBDXOBaKjIYIW18GLDB55l66S37U1A="; + }; + + build-system = [ + setuptools + llm + ]; + dependencies = [ ]; + + pythonImportsCheck = [ "llm_fragments_github" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "Load GitHub repository contents as LLM fragments"; + homepage = "https://github.com/simonw/llm-fragments-github"; + changelog = "https://github.com/simonw/llm-fragments-github/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix new file mode 100644 index 000000000000..293494665727 --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-fragments-github + ]); +in +runCommand "llm-fragments-github-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-fragments-github")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cef6c0f043c6..84c80e42193d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8302,6 +8302,8 @@ self: super: with self; { llm-deepseek = callPackage ../development/python-modules/llm-deepseek { }; + llm-fragments-github = callPackage ../development/python-modules/llm-fragments-github { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From c83f08dd2b33af7d09fb5492c842815e07a2e07e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 14:50:54 -0700 Subject: [PATCH 026/146] python3Packages.llm-fragments-pypi: init at 0.1.1 --- pkgs/by-name/ll/llm/package.nix | 3 ++ .../llm-fragments-pypi/default.nix | 42 +++++++++++++++++++ .../llm-fragments-pypi/tests/llm-plugin.nix | 22 ++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 69 insertions(+) create mode 100644 pkgs/development/python-modules/llm-fragments-pypi/default.nix create mode 100644 pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 4e67480d7d64..6f57ce6bbda3 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -6,6 +6,7 @@ enable-llm-command-r ? false, enable-llm-deepseek ? false, enable-llm-fragments-github ? false, + enable-llm-fragments-pypi ? false, enable-llm-gemini ? false, enable-llm-grok ? false, enable-llm-groq ? false, @@ -31,6 +32,7 @@ let llm-command-r llm-deepseek llm-fragments-github + llm-fragments-pypi llm-gemini llm-gguf llm-grok @@ -57,6 +59,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-cmd [ llm-command-r ] ++ lib.optionals enable-llm-deepseek [ llm-deepseek ] ++ lib.optionals enable-llm-fragments-github [ llm-fragments-github ] + ++ lib.optionals enable-llm-fragments-pypi [ llm-fragments-pypi ] ++ lib.optionals enable-llm-gemini [ llm-gemini ] ++ lib.optionals enable-llm-gguf [ llm-gguf ] ++ lib.optionals enable-llm-grok [ llm-grok ] diff --git a/pkgs/development/python-modules/llm-fragments-pypi/default.nix b/pkgs/development/python-modules/llm-fragments-pypi/default.nix new file mode 100644 index 000000000000..8c7dc9f9168a --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-pypi/default.nix @@ -0,0 +1,42 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + hatchling, + llm, + httpx, +}: + +buildPythonPackage rec { + pname = "llm-fragments-pypi"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "samueldg"; + repo = "llm-fragments-pypi"; + tag = version; + hash = "sha256-1XqAmuZ1WMHD6JbLbLsK9K4Uf3FvvKJD4mn1G2J/3C8="; + }; + + build-system = [ + hatchling + llm + ]; + dependencies = [ httpx ]; + + pythonImportsCheck = [ "llm_fragments_pypi" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM fragments plugin for PyPI packages metadata"; + homepage = "https://github.com/samueldg/llm-fragments-pypi"; + changelog = "https://github.com/samueldg/llm-fragments-pypi/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix new file mode 100644 index 000000000000..96329d01bf6b --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-fragments-pypi + ]); +in +runCommand "llm-fragments-pypi-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-fragments-pypi")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 84c80e42193d..f50ae4b7cd99 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8304,6 +8304,8 @@ self: super: with self; { llm-fragments-github = callPackage ../development/python-modules/llm-fragments-github { }; + llm-fragments-pypi = callPackage ../development/python-modules/llm-fragments-pypi { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From 5471027b2c9a4fd9c654fe76ff6beeeb1e168388 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 15:13:56 -0700 Subject: [PATCH 027/146] python3Packages.llm-sentence-transformers: init at 0.3.2 --- pkgs/by-name/ll/llm/package.nix | 3 + .../llm-sentence-transformers/default.nix | 60 +++++++++++++++++++ .../tests/llm-plugin.nix | 22 +++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 87 insertions(+) create mode 100644 pkgs/development/python-modules/llm-sentence-transformers/default.nix create mode 100644 pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index 6f57ce6bbda3..d98edfd4c9cb 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -17,6 +17,7 @@ enable-llm-ollama ? false, enable-llm-openai-plugin ? false, enable-llm-openrouter ? false, + enable-llm-sentence-transformers ? false, enable-llm-templates-fabric ? false, enable-llm-templates-github ? false, enable-llm-venice ? false, @@ -43,6 +44,7 @@ let llm-ollama llm-openai-plugin llm-openrouter + llm-sentence-transformers llm-templates-fabric llm-templates-github llm-venice @@ -70,6 +72,7 @@ toPythonApplication ( ++ lib.optionals enable-llm-ollama [ llm-ollama ] ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] + ++ lib.optionals enable-llm-sentence-transformers [ llm-sentence-transformers ] ++ lib.optionals enable-llm-templates-fabric [ llm-templates-fabric ] ++ lib.optionals enable-llm-templates-github [ llm-templates-github ] ++ lib.optionals enable-llm-venice [ llm-venice ] diff --git a/pkgs/development/python-modules/llm-sentence-transformers/default.nix b/pkgs/development/python-modules/llm-sentence-transformers/default.nix new file mode 100644 index 000000000000..6eec7d0d5b7b --- /dev/null +++ b/pkgs/development/python-modules/llm-sentence-transformers/default.nix @@ -0,0 +1,60 @@ +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + einops, + sentence-transformers, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-sentence-transformers"; + version = "0.3.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-sentence-transformers"; + tag = version; + hash = "sha256-FDDMItKFEYEptiL3EHKgKVxClqRU9RaM3uD3xP0F4OM="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ + einops + sentence-transformers + ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + # Disabled because they access the network + disabledTests = [ + "test_run_embedding" + "test_embed_multi_with_generator" + ]; + + pythonImportsCheck = [ "llm_sentence_transformers" ]; + + passthru.tests = { + llm-plugin = callPackage ./tests/llm-plugin.nix { }; + }; + + meta = { + description = "LLM plugin for embeddings using sentence-transformers"; + homepage = "https://github.com/simonw/llm-sentence-transformers"; + changelog = "https://github.com/simonw/llm-sentence-transformers/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix new file mode 100644 index 000000000000..5ccaea86b403 --- /dev/null +++ b/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix @@ -0,0 +1,22 @@ +{ + runCommand, + python, + yq, +}: +let + venv = python.withPackages (ps: [ + ps.llm + ps.llm-sentence-transformers + ]); +in +runCommand "llm-sentence-transformers-test-llm-plugin" + { + nativeBuildInputs = [ + venv + yq + ]; + } + '' + llm plugins | yq --exit-status 'any(.name == "llm-sentence-transformers")' + touch "$out" + '' diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f50ae4b7cd99..8bded0dc781f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8326,6 +8326,8 @@ self: super: with self; { llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llm-sentence-transformers = callPackage ../development/python-modules/llm-sentence-transformers { }; + llm-templates-fabric = callPackage ../development/python-modules/llm-templates-fabric { }; llm-templates-github = callPackage ../development/python-modules/llm-templates-github { }; From 794f8c04b063b49a49118800112e63d9e4d35327 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 8 May 2025 16:27:03 -0700 Subject: [PATCH 028/146] python3Packages.llm: introduce mkPluginTest and use it Since there's no fixpoint function support for `buildPythonPackage` yet, each of the llm modules imports itself for its tests. Works! --- .../python-modules/llm-anthropic/default.nix | 7 +++-- .../llm-anthropic/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-cmd/default.nix | 6 ++--- .../llm-cmd/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-command-r/default.nix | 6 ++--- .../llm-command-r/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-deepseek/default.nix | 7 ++--- .../llm-deepseek/tests/llm-plugin.nix | 22 --------------- .../llm-fragments-github/default.nix | 6 ++--- .../llm-fragments-github/tests/llm-plugin.nix | 22 --------------- .../llm-fragments-pypi/default.nix | 6 ++--- .../llm-fragments-pypi/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-gemini/default.nix | 6 ++--- .../llm-gemini/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-gguf/default.nix | 6 ++--- .../llm-gguf/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-grok/default.nix | 6 ++--- .../llm-grok/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-groq/default.nix | 6 ++--- .../llm-groq/tests/llm-plugin.nix | 22 --------------- .../llm-hacker-news/default.nix | 6 ++--- .../llm-hacker-news/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-jq/default.nix | 7 ++--- .../llm-jq/tests/llm-plugin.nix | 23 ---------------- .../python-modules/llm-mistral/default.nix | 6 ++--- .../llm-mistral/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-ollama/default.nix | 6 ++--- .../llm-ollama/tests/llm-plugin.nix | 24 ----------------- .../llm-openai-plugin/default.nix | 6 ++--- .../llm-openai-plugin/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-openrouter/default.nix | 8 +++--- .../llm-openrouter/tests/llm-plugin.nix | 22 --------------- .../llm-sentence-transformers/default.nix | 6 ++--- .../tests/llm-plugin.nix | 22 --------------- .../llm-templates-fabric/default.nix | 7 +++-- .../llm-templates-fabric/tests/llm-plugin.nix | 22 --------------- .../llm-templates-github/default.nix | 7 +++-- .../llm-templates-github/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm-venice/default.nix | 6 ++--- .../llm-venice/tests/llm-plugin.nix | 22 --------------- .../llm-video-frames/default.nix | 7 +++-- .../llm-video-frames/tests/llm-plugin.nix | 22 --------------- .../python-modules/llm/default.nix | 4 +++ .../python-modules/llm/mk-plugin-test.nix | 27 +++++++++++++++++++ 44 files changed, 78 insertions(+), 552 deletions(-) delete mode 100644 pkgs/development/python-modules/llm-anthropic/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-cmd/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-gemini/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-gguf/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-jq/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-ollama/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix delete mode 100644 pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix create mode 100644 pkgs/development/python-modules/llm/mk-plugin-test.nix diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index a7377833ff54..6418ddc8c2cf 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-anthropic, anthropic, pytestCheckHook, pytest-asyncio, @@ -28,6 +28,7 @@ buildPythonPackage rec { setuptools llm ]; + dependencies = [ anthropic ]; nativeCheckInputs = [ @@ -39,9 +40,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_anthropic" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-anthropic; meta = { description = "LLM access to models by Anthropic, including the Claude series"; diff --git a/pkgs/development/python-modules/llm-anthropic/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-anthropic/tests/llm-plugin.nix deleted file mode 100644 index a57802a8ad08..000000000000 --- a/pkgs/development/python-modules/llm-anthropic/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-anthropic - ]); -in -runCommand "llm-anthropic-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-anthropic")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-cmd/default.nix b/pkgs/development/python-modules/llm-cmd/default.nix index 9fca11cad544..e883cb87ecbc 100644 --- a/pkgs/development/python-modules/llm-cmd/default.nix +++ b/pkgs/development/python-modules/llm-cmd/default.nix @@ -1,6 +1,5 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, # build-system @@ -11,6 +10,7 @@ pygments, # tests pytestCheckHook, + llm-cmd, }: buildPythonPackage rec { @@ -46,9 +46,7 @@ buildPythonPackage rec { "llm_cmd" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-cmd; meta = { description = "Use LLM to generate and execute commands in your shell"; diff --git a/pkgs/development/python-modules/llm-cmd/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-cmd/tests/llm-plugin.nix deleted file mode 100644 index 1707195abbc7..000000000000 --- a/pkgs/development/python-modules/llm-cmd/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-cmd - ]); -in -runCommand "llm-cmd-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-cmd")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-command-r/default.nix b/pkgs/development/python-modules/llm-command-r/default.nix index c6d894cfc39b..af96a7e8d057 100644 --- a/pkgs/development/python-modules/llm-command-r/default.nix +++ b/pkgs/development/python-modules/llm-command-r/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-command-r, cohere, pytestCheckHook, pytest-recording, @@ -38,9 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_command_r" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-command-r; meta = { description = "Access the Cohere Command R family of models"; diff --git a/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix deleted file mode 100644 index a57802a8ad08..000000000000 --- a/pkgs/development/python-modules/llm-command-r/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-anthropic - ]); -in -runCommand "llm-anthropic-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-anthropic")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-deepseek/default.nix b/pkgs/development/python-modules/llm-deepseek/default.nix index a7a5333c682a..8ff63bd96064 100644 --- a/pkgs/development/python-modules/llm-deepseek/default.nix +++ b/pkgs/development/python-modules/llm-deepseek/default.nix @@ -1,11 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, - groq, + llm-deepseek, }: buildPythonPackage rec { @@ -29,9 +28,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_deepseek" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-deepseek; meta = { description = "LLM plugin providing access to Deepseek models."; diff --git a/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix deleted file mode 100644 index f7a9ac60837c..000000000000 --- a/pkgs/development/python-modules/llm-deepseek/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-deepseek - ]); -in -runCommand "llm-deepseek-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-deepseek")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-fragments-github/default.nix b/pkgs/development/python-modules/llm-fragments-github/default.nix index 67af612c7a55..dbadab8094de 100644 --- a/pkgs/development/python-modules/llm-fragments-github/default.nix +++ b/pkgs/development/python-modules/llm-fragments-github/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-fragments-github, }: buildPythonPackage rec { @@ -27,9 +27,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_fragments_github" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-fragments-github; meta = { description = "Load GitHub repository contents as LLM fragments"; diff --git a/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix deleted file mode 100644 index 293494665727..000000000000 --- a/pkgs/development/python-modules/llm-fragments-github/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-fragments-github - ]); -in -runCommand "llm-fragments-github-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-fragments-github")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-fragments-pypi/default.nix b/pkgs/development/python-modules/llm-fragments-pypi/default.nix index 8c7dc9f9168a..d30135b5378d 100644 --- a/pkgs/development/python-modules/llm-fragments-pypi/default.nix +++ b/pkgs/development/python-modules/llm-fragments-pypi/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, hatchling, llm, + llm-fragments-pypi, httpx, }: @@ -28,9 +28,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_fragments_pypi" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-fragments-pypi; meta = { description = "LLM fragments plugin for PyPI packages metadata"; diff --git a/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix deleted file mode 100644 index 96329d01bf6b..000000000000 --- a/pkgs/development/python-modules/llm-fragments-pypi/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-fragments-pypi - ]); -in -runCommand "llm-fragments-pypi-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-fragments-pypi")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-gemini/default.nix b/pkgs/development/python-modules/llm-gemini/default.nix index 7fa90627c6b7..e14f77bc63fe 100644 --- a/pkgs/development/python-modules/llm-gemini/default.nix +++ b/pkgs/development/python-modules/llm-gemini/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-gemini, httpx, ijson, pytestCheckHook, @@ -45,9 +45,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_gemini" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-gemini; meta = { description = "LLM plugin to access Google's Gemini family of models"; diff --git a/pkgs/development/python-modules/llm-gemini/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-gemini/tests/llm-plugin.nix deleted file mode 100644 index d1f2f6ffbe67..000000000000 --- a/pkgs/development/python-modules/llm-gemini/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-gemini - ]); -in -runCommand "llm-gemini-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-gemini")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-gguf/default.nix b/pkgs/development/python-modules/llm-gguf/default.nix index 386c0c11b392..6d72228e943a 100644 --- a/pkgs/development/python-modules/llm-gguf/default.nix +++ b/pkgs/development/python-modules/llm-gguf/default.nix @@ -1,6 +1,5 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, @@ -11,6 +10,7 @@ httpx, llama-cpp-python, llm, + llm-gguf, }: buildPythonPackage rec { @@ -40,9 +40,7 @@ buildPythonPackage rec { # Tests require internet access (downloading models) doCheck = false; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-gguf; meta = { description = "Run models distributed as GGUF files using LLM"; diff --git a/pkgs/development/python-modules/llm-gguf/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-gguf/tests/llm-plugin.nix deleted file mode 100644 index 97e1f51d6c26..000000000000 --- a/pkgs/development/python-modules/llm-gguf/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-gguf - ]); -in -runCommand "llm-gguf-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-gguf")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-grok/default.nix b/pkgs/development/python-modules/llm-grok/default.nix index f326866798a0..6c8baca68f7f 100644 --- a/pkgs/development/python-modules/llm-grok/default.nix +++ b/pkgs/development/python-modules/llm-grok/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-grok, httpx, httpx-sse, rich, @@ -44,9 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_grok" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-grok; meta = { description = "LLM plugin providing access to Grok models using the xAI API"; diff --git a/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix deleted file mode 100644 index 5ea012b0de7f..000000000000 --- a/pkgs/development/python-modules/llm-grok/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-grok - ]); -in -runCommand "llm-grok-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-grok")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-groq/default.nix b/pkgs/development/python-modules/llm-groq/default.nix index a3f02f2e0b8a..8f2a04aa4f72 100644 --- a/pkgs/development/python-modules/llm-groq/default.nix +++ b/pkgs/development/python-modules/llm-groq/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-groq, groq, }: @@ -29,9 +29,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_groq" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-groq; meta = { description = "LLM plugin providing access to Groqcloud models."; diff --git a/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix deleted file mode 100644 index 5d0ce63e91db..000000000000 --- a/pkgs/development/python-modules/llm-groq/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-groq - ]); -in -runCommand "llm-groq-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-groq")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-hacker-news/default.nix b/pkgs/development/python-modules/llm-hacker-news/default.nix index 86e390b73303..3029de613c74 100644 --- a/pkgs/development/python-modules/llm-hacker-news/default.nix +++ b/pkgs/development/python-modules/llm-hacker-news/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-hacker-news, }: buildPythonPackage rec { @@ -27,9 +27,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_hacker_news" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-hacker-news; meta = { description = "LLM plugin for pulling content from Hacker News"; diff --git a/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix deleted file mode 100644 index 85311225866a..000000000000 --- a/pkgs/development/python-modules/llm-hacker-news/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-hacker-news - ]); -in -runCommand "llm-hacker-news-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-hacker-news")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-jq/default.nix b/pkgs/development/python-modules/llm-jq/default.nix index dab2b6727c9e..64c3149e8b96 100644 --- a/pkgs/development/python-modules/llm-jq/default.nix +++ b/pkgs/development/python-modules/llm-jq/default.nix @@ -1,11 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, - nix-update-script, + llm-jq, }: buildPythonPackage rec { pname = "llm-jq"; @@ -28,9 +27,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_jq" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-jq; meta = { description = "Write and execute jq programs with the help of LLM"; diff --git a/pkgs/development/python-modules/llm-jq/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-jq/tests/llm-plugin.nix deleted file mode 100644 index d659a2d52198..000000000000 --- a/pkgs/development/python-modules/llm-jq/tests/llm-plugin.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-jq - ]); -in -runCommand "llm-jq-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-jq")' - llm jq --help - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-mistral/default.nix b/pkgs/development/python-modules/llm-mistral/default.nix index 25af109cc023..016ca52b1c19 100644 --- a/pkgs/development/python-modules/llm-mistral/default.nix +++ b/pkgs/development/python-modules/llm-mistral/default.nix @@ -1,12 +1,12 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, httpx, httpx-sse, llm, + llm-mistral, pytestCheckHook, pytest-asyncio, pytest-httpx, @@ -44,9 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_mistral" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-mistral; meta = { description = "LLM plugin providing access to Mistral models using the Mistral API"; diff --git a/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix deleted file mode 100644 index 23077de3b85e..000000000000 --- a/pkgs/development/python-modules/llm-mistral/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-mistral - ]); -in -runCommand "llm-mistral-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-mistral")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-ollama/default.nix b/pkgs/development/python-modules/llm-ollama/default.nix index e8d13d4926c6..f0938ccf36b3 100644 --- a/pkgs/development/python-modules/llm-ollama/default.nix +++ b/pkgs/development/python-modules/llm-ollama/default.nix @@ -1,6 +1,5 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, @@ -18,6 +17,7 @@ pytest-asyncio, pytest-mock, writableTmpDirAsHomeHook, + llm-ollama, }: buildPythonPackage rec { @@ -55,9 +55,7 @@ buildPythonPackage rec { "llm_ollama" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-ollama; meta = { description = "LLM plugin providing access to Ollama models using HTTP API"; diff --git a/pkgs/development/python-modules/llm-ollama/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-ollama/tests/llm-plugin.nix deleted file mode 100644 index c601b393ac62..000000000000 --- a/pkgs/development/python-modules/llm-ollama/tests/llm-plugin.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - runCommand, - python, - yq, - cacert, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-ollama - ]); -in -runCommand "llm-ollama-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-ollama")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-openai-plugin/default.nix b/pkgs/development/python-modules/llm-openai-plugin/default.nix index d978142bd1c7..7543a341f3c1 100644 --- a/pkgs/development/python-modules/llm-openai-plugin/default.nix +++ b/pkgs/development/python-modules/llm-openai-plugin/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-openai-plugin, openai, pytestCheckHook, pytest-asyncio, @@ -45,9 +45,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_openai" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-openai-plugin; meta = { description = "OpenAI plugin for LLM"; diff --git a/pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix deleted file mode 100644 index 8092b15a5c90..000000000000 --- a/pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-openai-plugin - ]); -in -runCommand "llm-openai-plugin-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-openai-plugin")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-openrouter/default.nix b/pkgs/development/python-modules/llm-openrouter/default.nix index bb6913547872..9c576d88e536 100644 --- a/pkgs/development/python-modules/llm-openrouter/default.nix +++ b/pkgs/development/python-modules/llm-openrouter/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-openrouter, httpx, openai, pytestCheckHook, @@ -14,7 +14,7 @@ }: buildPythonPackage rec { - pname = "openrouter"; + pname = "llm-openrouter"; version = "0.4.1"; pyproject = true; @@ -44,9 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_openrouter" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-openrouter; meta = { description = "LLM plugin for models hosted by OpenRouter"; diff --git a/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix deleted file mode 100644 index 30e9fc6d5511..000000000000 --- a/pkgs/development/python-modules/llm-openrouter/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-openrouter - ]); -in -runCommand "llm-openrouter-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-openrouter")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-sentence-transformers/default.nix b/pkgs/development/python-modules/llm-sentence-transformers/default.nix index 6eec7d0d5b7b..a9a702d0fa07 100644 --- a/pkgs/development/python-modules/llm-sentence-transformers/default.nix +++ b/pkgs/development/python-modules/llm-sentence-transformers/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-sentence-transformers, einops, sentence-transformers, pytestCheckHook, @@ -46,9 +46,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_sentence_transformers" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-sentence-transformers; meta = { description = "LLM plugin for embeddings using sentence-transformers"; diff --git a/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix deleted file mode 100644 index 5ccaea86b403..000000000000 --- a/pkgs/development/python-modules/llm-sentence-transformers/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-sentence-transformers - ]); -in -runCommand "llm-sentence-transformers-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-sentence-transformers")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-templates-fabric/default.nix b/pkgs/development/python-modules/llm-templates-fabric/default.nix index 0bbc11af790a..979f9f8bae0f 100644 --- a/pkgs/development/python-modules/llm-templates-fabric/default.nix +++ b/pkgs/development/python-modules/llm-templates-fabric/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-templates-fabric, }: buildPythonPackage rec { @@ -23,13 +23,12 @@ buildPythonPackage rec { setuptools llm ]; + dependencies = [ ]; pythonImportsCheck = [ "llm_templates_fabric" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-templates-fabric; meta = { description = "Load LLM templates from Fabric"; diff --git a/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix deleted file mode 100644 index b00bdfbcaa9e..000000000000 --- a/pkgs/development/python-modules/llm-templates-fabric/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-templates-fabric - ]); -in -runCommand "llm-templates-fabric-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-templates-fabric")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-templates-github/default.nix b/pkgs/development/python-modules/llm-templates-github/default.nix index f5e7d66b0f01..58a78512959d 100644 --- a/pkgs/development/python-modules/llm-templates-github/default.nix +++ b/pkgs/development/python-modules/llm-templates-github/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-templates-github, }: buildPythonPackage rec { @@ -23,13 +23,12 @@ buildPythonPackage rec { setuptools llm ]; + dependencies = [ ]; pythonImportsCheck = [ "llm_templates_github" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-templates-github; meta = { description = "Load LLM templates from GitHub repositories"; diff --git a/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix deleted file mode 100644 index a9569f069638..000000000000 --- a/pkgs/development/python-modules/llm-templates-github/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-templates-github - ]); -in -runCommand "llm-templates-github-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-templates-github")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-venice/default.nix b/pkgs/development/python-modules/llm-venice/default.nix index a7e4ad7264ac..460d814f1514 100644 --- a/pkgs/development/python-modules/llm-venice/default.nix +++ b/pkgs/development/python-modules/llm-venice/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-venice, }: buildPythonPackage rec { @@ -31,9 +31,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "llm_venice" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-venice; meta = { description = "LLM plugin to access models available via the Venice API"; diff --git a/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix deleted file mode 100644 index 5648d9a45703..000000000000 --- a/pkgs/development/python-modules/llm-venice/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-venice - ]); -in -runCommand "llm-venice-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-venice")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm-video-frames/default.nix b/pkgs/development/python-modules/llm-video-frames/default.nix index 5572eaad4ab6..b519b37bcb24 100644 --- a/pkgs/development/python-modules/llm-video-frames/default.nix +++ b/pkgs/development/python-modules/llm-video-frames/default.nix @@ -1,10 +1,10 @@ { lib, - callPackage, buildPythonPackage, fetchFromGitHub, setuptools, llm, + llm-video-frames, }: buildPythonPackage rec { @@ -23,13 +23,12 @@ buildPythonPackage rec { setuptools llm ]; + dependencies = [ ]; pythonImportsCheck = [ "llm_video_frames" ]; - passthru.tests = { - llm-plugin = callPackage ./tests/llm-plugin.nix { }; - }; + passthru.tests = llm.mkPluginTest llm-video-frames; meta = { description = "LLM plugin to turn a video into individual frames"; diff --git a/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix b/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix deleted file mode 100644 index 0d72352fe75d..000000000000 --- a/pkgs/development/python-modules/llm-video-frames/tests/llm-plugin.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - runCommand, - python, - yq, -}: -let - venv = python.withPackages (ps: [ - ps.llm - ps.llm-video-frames - ]); -in -runCommand "llm-video-frames-test-llm-plugin" - { - nativeBuildInputs = [ - venv - yq - ]; - } - '' - llm plugins | yq --exit-status 'any(.name == "llm-video-frames")' - touch "$out" - '' diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index aa2515f19c73..477dd2dc48c4 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -1,5 +1,6 @@ { lib, + callPackage, buildPythonPackage, fetchFromGitHub, pytestCheckHook, @@ -75,6 +76,9 @@ let passthru = { inherit withPlugins; + mkPluginTest = plugin: { + ${plugin.pname} = callPackage ./mk-plugin-test.nix { inherit llm plugin; }; + }; }; meta = with lib; { diff --git a/pkgs/development/python-modules/llm/mk-plugin-test.nix b/pkgs/development/python-modules/llm/mk-plugin-test.nix new file mode 100644 index 000000000000..01a53ab28348 --- /dev/null +++ b/pkgs/development/python-modules/llm/mk-plugin-test.nix @@ -0,0 +1,27 @@ +{ + cacert, + runCommand, + writableTmpDirAsHomeHook, + yq, + llm, + plugin, +}: +let + venv = llm.pythonModule.withPackages (_: [ + llm + plugin + ]); +in +runCommand "${plugin.pname}-test" + { + nativeBuildInputs = [ + venv + writableTmpDirAsHomeHook + yq + ]; + env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + } + '' + llm plugins | yq --exit-status 'any(.name == "${plugin.pname}")' + touch "$out" + '' From 0d50348b5199eacca771098fe221b16a35e5893e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 9 May 2025 14:04:33 -0700 Subject: [PATCH 029/146] llm: reintroduce withPlugins This was removed in #340510, as the previous implementation didn't work well. However, it's still the method that's recommended in the patch for the `llm install` command (`001-disable-install-uninstall-commands.patch`) and with the additions to `enable` overrides on the top-level `llm` derivation, there's a need for a place where the LLM plugin "directory" is specified. So, I've reintroduced the method with a completely new implementation. I've also given it some protections against the list of names getting out of date. This might be a little too clever, but I think the user-facing interface for this function is now quite nice. --- pkgs/by-name/ll/llm/package.nix | 119 +++++++----------- .../python-modules/llm/default.nix | 109 ++++++++++++++-- 2 files changed, 143 insertions(+), 85 deletions(-) diff --git a/pkgs/by-name/ll/llm/package.nix b/pkgs/by-name/ll/llm/package.nix index d98edfd4c9cb..f2bb127d32aa 100644 --- a/pkgs/by-name/ll/llm/package.nix +++ b/pkgs/by-name/ll/llm/package.nix @@ -1,81 +1,46 @@ -{ - lib, - python3Packages, - enable-llm-anthropic ? false, - enable-llm-cmd ? false, - enable-llm-command-r ? false, - enable-llm-deepseek ? false, - enable-llm-fragments-github ? false, - enable-llm-fragments-pypi ? false, - enable-llm-gemini ? false, - enable-llm-grok ? false, - enable-llm-groq ? false, - enable-llm-gguf ? false, - enable-llm-hacker-news ? false, - enable-llm-jq ? false, - enable-llm-mistral ? false, - enable-llm-ollama ? false, - enable-llm-openai-plugin ? false, - enable-llm-openrouter ? false, - enable-llm-sentence-transformers ? false, - enable-llm-templates-fabric ? false, - enable-llm-templates-github ? false, - enable-llm-venice ? false, - enable-llm-video-frames ? false, -}: +# The `...` allows this derivation to be overridden with `enable-`. +# +# Example: +# +# ```nix +# llm.override { +# enable-llm-anthropic = true; +# enable-llm-gemini = true; +# enable-llm-cmd = true; +# enable-llm-templates-github = true; +# } +# ``` +# +# Whatever names are accepted by `llm.withPlugins` are accepted with an added `enable-` prefix as +# an override of this derivation. The user can also do `llm.withPlugins { llm-anthropic = true; }`. +{ lib, python3Packages, ... }@args: let - inherit (python3Packages) - toPythonApplication - llm - llm-anthropic - llm-cmd - llm-command-r - llm-deepseek - llm-fragments-github - llm-fragments-pypi - llm-gemini - llm-gguf - llm-grok - llm-groq - llm-hacker-news - llm-jq - llm-mistral - llm-ollama - llm-openai-plugin - llm-openrouter - llm-sentence-transformers - llm-templates-fabric - llm-templates-github - llm-venice - llm-video-frames - ; + inherit (python3Packages) llm; + + hasEnablePrefix = lib.hasPrefix "enable-"; + addEnablePrefix = name: "enable-${name}"; + removeEnablePrefix = lib.removePrefix "enable-"; + + # Filter to just the attributes which are named "enable-" + enableArgs = lib.filterAttrs (name: value: hasEnablePrefix name) args; + pluginArgs = lib.mapAttrs' ( + name: value: lib.nameValuePair (removeEnablePrefix name) value + ) enableArgs; + + # Provide some diagnostics for the plugin names + pluginNames = lib.attrNames (lib.functionArgs llm.withPlugins); + enableNames = lib.map addEnablePrefix pluginNames; + unknownPluginNames = lib.removeAttrs pluginArgs pluginNames; + unknownNames = lib.map addEnablePrefix (lib.attrNames unknownPluginNames); + unknownNamesDiagnostic = '' + Unknown plugins specified in override: ${lib.concatStringsSep ", " unknownNames} + + Valid overrides: + - ${lib.concatStringsSep "\n - " enableNames} + ''; in -toPythonApplication ( - llm.overrideAttrs (finalAttrs: { - propagatedBuildInputs = - (finalAttrs.propagatedBuildInputs or [ ]) - ++ lib.optionals enable-llm-anthropic [ llm-anthropic ] - ++ lib.optionals enable-llm-cmd [ llm-cmd ] - ++ lib.optionals enable-llm-cmd [ llm-command-r ] - ++ lib.optionals enable-llm-deepseek [ llm-deepseek ] - ++ lib.optionals enable-llm-fragments-github [ llm-fragments-github ] - ++ lib.optionals enable-llm-fragments-pypi [ llm-fragments-pypi ] - ++ lib.optionals enable-llm-gemini [ llm-gemini ] - ++ lib.optionals enable-llm-gguf [ llm-gguf ] - ++ lib.optionals enable-llm-grok [ llm-grok ] - ++ lib.optionals enable-llm-groq [ llm-groq ] - ++ lib.optionals enable-llm-hacker-news [ llm-hacker-news ] - ++ lib.optionals enable-llm-jq [ llm-jq ] - ++ lib.optionals enable-llm-mistral [ llm-mistral ] - ++ lib.optionals enable-llm-ollama [ llm-ollama ] - ++ lib.optionals enable-llm-openai-plugin [ llm-openai-plugin ] - ++ lib.optionals enable-llm-openrouter [ llm-openrouter ] - ++ lib.optionals enable-llm-sentence-transformers [ llm-sentence-transformers ] - ++ lib.optionals enable-llm-templates-fabric [ llm-templates-fabric ] - ++ lib.optionals enable-llm-templates-github [ llm-templates-github ] - ++ lib.optionals enable-llm-venice [ llm-venice ] - ++ lib.optionals enable-llm-video-frames [ llm-video-frames ]; - }) -) +assert lib.assertMsg (lib.length unknownNames == 0) unknownNamesDiagnostic; + +llm.withPlugins pluginArgs diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 477dd2dc48c4..8f13f25783b8 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -1,5 +1,6 @@ { lib, + runCommand, callPackage, buildPythonPackage, fetchFromGitHub, @@ -14,6 +15,7 @@ pluggy, puremagic, pydantic, + python, python-ulid, pyyaml, sqlite-migrate, @@ -23,6 +25,103 @@ sqlite-utils, }: let + # The function signature of `withPlugins` is the list of all the plugins `llm` knows about. + # The plugin directory is at + withPluginsArgNames = lib.functionArgs withPlugins; + + /** + Make a derivation for `llm` that contains `llm` plus the relevant plugins. + + # Type + + ``` + withPlugins :: + { + llm-anthropic :: bool, + llm-gemini :: bool, + ... + } + -> derivation + ``` + + See `lib.attrNames (lib.functionArgs llm.withPlugins)` for the total list of plugins supported. + + # Examples + :::{.example} + ## `llm.withPlugins` usage example + + ```nix + llm.withPlugins { llm-gemini = true; llm-groq = true; } + => «derivation /nix/store/-python3-3.12.10-llm-with-llm-gemini-llm-groq.drv» + ``` + + ::: + */ + withPlugins = + # Keep this list up to date with the plugins in python3Packages! + { + llm-anthropic ? false, + llm-cmd ? false, + llm-command-r ? false, + llm-deepseek ? false, + llm-fragments-github ? false, + llm-fragments-pypi ? false, + llm-gemini ? false, + llm-gguf ? false, + llm-grok ? false, + llm-groq ? false, + llm-hacker-news ? false, + llm-jq ? false, + llm-mistral ? false, + llm-ollama ? false, + llm-openai-plugin ? false, + llm-openrouter ? false, + llm-sentence-transformers ? false, + llm-templates-fabric ? false, + llm-templates-github ? false, + llm-venice ? false, + llm-video-frames ? false, + }@args: + let + # Filter to just the attributes which are set to a true value. + setArgs = lib.filterAttrs (name: lib.id) args; + + # Make a string with those names separated with a dash. + setArgsStr = lib.concatStringsSep "-" (lib.attrNames setArgs); + + # Make the derivation name reflect what's inside it. + drvName = if lib.stringLength setArgsStr == 0 then "llm" else "llm-with-${setArgsStr}"; + + # Make a python environment with just those plugins. + python-environment = python.withPackages ( + ps: + let + # Throw a diagnostic if this list gets out of sync with the names in python3Packages + allPluginsPresent = pluginNames == (lib.attrNames withPluginsArgNames); + pluginNames = lib.attrNames (lib.intersectAttrs ps withPluginsArgNames); + missingNamesList = lib.attrNames (lib.removeAttrs withPluginsArgNames pluginNames); + missingNames = lib.concatStringsSep ", " missingNamesList; + + # The relevant plugins are the ones the user asked for. + plugins = lib.intersectAttrs setArgs ps; + in + assert lib.assertMsg allPluginsPresent "Missing these plugins: ${missingNames}"; + ([ ps.llm ] ++ lib.attrValues plugins) + ); + + in + # That Python environment produced above contains too many irrelevant binaries, due to how + # Python needs to use propagatedBuildInputs. Let's make one with just what's needed: `llm`. + # Since we include the `passthru` and `meta` information, it's as good as the original + # derivation. + runCommand "${python.name}-${drvName}" { inherit (llm) passthru meta; } '' + mkdir -p $out/bin + ln -s ${python-environment}/bin/llm $out/bin/llm + ''; + + # Uses the `withPlugins` names to make a Python environment with everything. + withAllPlugins = withPlugins (lib.genAttrs (lib.attrNames withPluginsArgNames) (name: true)); + llm = buildPythonPackage rec { pname = "llm"; version = "0.25"; @@ -75,7 +174,8 @@ let pythonImportsCheck = [ "llm" ]; passthru = { - inherit withPlugins; + inherit withPlugins withAllPlugins; + mkPluginTest = plugin: { ${plugin.pname} = callPackage ./mk-plugin-test.nix { inherit llm plugin; }; }; @@ -93,12 +193,5 @@ let ]; }; }; - - withPlugins = throw '' - llm.withPlugins was confusing to use and has been removed. - Please migrate to using python3.withPackages(ps: [ ps.llm ]) instead. - - See https://nixos.org/manual/nixpkgs/stable/#python.withpackages-function for more usage examples. - ''; in llm From b06e408d0dd51270606513d48b936774799f1c0f Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Sat, 10 May 2025 14:55:55 -0700 Subject: [PATCH 030/146] llm: customize the message on `llm install` and `llm uninstall` with the list of plugins possible This way, users know what they can specify as far as plugins go. It serves as a plugin directory. --- ...1-disable-install-uninstall-commands.patch | 38 +++++++++++++++---- .../python-modules/llm/default.nix | 37 ++++++++++++++---- 2 files changed, 59 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch b/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch index cef7fba13343..4d6280349358 100644 --- a/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch +++ b/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch @@ -1,8 +1,8 @@ -diff --git a/llm/cli.py b/llm/cli.py -index af37feb..18b078a 100644 ---- a/llm/cli.py -+++ b/llm/cli.py -@@ -1014,18 +1014,7 @@ def templates_path(): +diff --git i/llm/cli.py w/llm/cli.py +index 09e4e2d..8424a5e 100644 +--- i/llm/cli.py ++++ w/llm/cli.py +@@ -2383,18 +2383,18 @@ def display_truncated(text): ) def install(packages, upgrade, editable, force_reinstall, no_cache_dir): """Install packages from PyPI into the same environment as LLM""" @@ -18,17 +18,39 @@ index af37feb..18b078a 100644 - args += list(packages) - sys.argv = args - run_module("pip", run_name="__main__") -+ click.echo("Install command has been disabled for Nix. If you want to install extra llm plugins, use llm.withPlugins([]) expression.") ++ click.echo( ++"""Install command has been disabled for Nix. To install extra `llm` plugins, use the `llm.withPlugins` function. ++ ++Example: ++ ++```nix ++llm.withPlugins { ++ @listOfPackagedPlugins@ ++} ++``` ++""" ++ ) @cli.command() -@@ -1033,8 +1022,7 @@ def install(packages, upgrade, editable, force_reinstall, no_cache_dir): +@@ -2402,8 +2402,18 @@ def install(packages, upgrade, editable, force_reinstall, no_cache_dir): @click.option("-y", "--yes", is_flag=True, help="Don't ask for confirmation") def uninstall(packages, yes): """Uninstall Python packages from the LLM environment""" - sys.argv = ["pip", "uninstall"] + list(packages) + (["-y"] if yes else []) - run_module("pip", run_name="__main__") -+ click.echo("Uninstall command has been disabled for Nix. If you want to uninstall extra llm plugins, just remove them from llm.withPlugins([]) list expression.") ++ click.echo( ++"""Uninstall command has been disabled for Nix. To remove `llm` plugins, use the `llm.withPlugins` function with the desired set of plugins specified. ++ ++Example: ++ ++```nix ++llm.withPlugins { ++ @listOfPackagedPlugins@ ++} ++``` ++""" ++ ) @cli.command() diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 8f13f25783b8..743e7c902801 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -6,6 +6,7 @@ fetchFromGitHub, pytestCheckHook, pythonOlder, + replaceVars, setuptools, click-default-group, condense-json, @@ -25,12 +26,10 @@ sqlite-utils, }: let - # The function signature of `withPlugins` is the list of all the plugins `llm` knows about. - # The plugin directory is at - withPluginsArgNames = lib.functionArgs withPlugins; - /** Make a derivation for `llm` that contains `llm` plus the relevant plugins. + The function signature of `withPlugins` is the list of all the plugins `llm` knows about. + Adding a parameter here requires that it be in `python3Packages` attrset. # Type @@ -81,6 +80,7 @@ let llm-templates-github ? false, llm-venice ? false, llm-video-frames ? false, + ... }@args: let # Filter to just the attributes which are set to a true value. @@ -97,9 +97,9 @@ let ps: let # Throw a diagnostic if this list gets out of sync with the names in python3Packages - allPluginsPresent = pluginNames == (lib.attrNames withPluginsArgNames); - pluginNames = lib.attrNames (lib.intersectAttrs ps withPluginsArgNames); - missingNamesList = lib.attrNames (lib.removeAttrs withPluginsArgNames pluginNames); + allPluginsPresent = pluginNames == withPluginsArgNames; + pluginNames = lib.attrNames (lib.intersectAttrs ps withPluginsArgs); + missingNamesList = lib.attrNames (lib.removeAttrs withPluginsArgs pluginNames); missingNames = lib.concatStringsSep ", " missingNamesList; # The relevant plugins are the ones the user asked for. @@ -120,7 +120,24 @@ let ''; # Uses the `withPlugins` names to make a Python environment with everything. - withAllPlugins = withPlugins (lib.genAttrs (lib.attrNames withPluginsArgNames) (name: true)); + withAllPlugins = withPlugins (lib.genAttrs withPluginsArgNames (name: true)); + + # The function signature of `withPlugins` is the list of all the plugins `llm` knows about. + # The plugin directory is at + withPluginsArgs = lib.functionArgs withPlugins; + withPluginsArgNames = lib.attrNames withPluginsArgs; + + # In order to help with usability, we patch `llm install` and `llm uninstall` to tell users how to + # customize `llm` with plugins in Nix, including the name of the plugin, its description, and + # where it's coming from. + listOfPackagedPlugins = builtins.toFile "plugins.txt" ( + lib.concatStringsSep "\n " ( + map (name: '' + # ${python.pkgs.${name}.meta.description} <${python.pkgs.${name}.meta.homepage}> + ${name} = true; + '') withPluginsArgNames + ) + ); llm = buildPythonPackage rec { pname = "llm"; @@ -140,6 +157,10 @@ let patches = [ ./001-disable-install-uninstall-commands.patch ]; + postPatch = '' + substituteInPlace llm/cli.py --replace-fail "@listOfPackagedPlugins@" "$(< ${listOfPackagedPlugins})" + ''; + dependencies = [ click-default-group condense-json From 81b35cd59bc06990d7f610291f22666ac347a97a Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:13:36 -0700 Subject: [PATCH 031/146] llm: add philiptaron to maintainers --- pkgs/development/python-modules/llm/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 743e7c902801..c1f71fa10e16 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -202,15 +202,16 @@ let }; }; - meta = with lib; { + meta = { homepage = "https://github.com/simonw/llm"; description = "Access large language models from the command-line"; changelog = "https://github.com/simonw/llm/releases/tag/${src.tag}"; - license = licenses.asl20; + license = lib.licenses.asl20; mainProgram = "llm"; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ aldoborrero mccartykim + philiptaron ]; }; }; From a8e9182cd86827dcd5bb23c97a1b550cd04b86cd Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:17:19 -0700 Subject: [PATCH 032/146] python3Packages.llm-anthropic: 0.15.1 -> 0.16a2 Diff: https://github.com/simonw/llm-anthropic/compare/refs/tags/0.15.1...refs/tags/0.16a2 Changelog: https://github.com/simonw/llm-anthropic/releases/tag/0.16a2/CHANGELOG.md --- pkgs/development/python-modules/llm-anthropic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index 6418ddc8c2cf..c0ba9772382f 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -14,14 +14,14 @@ buildPythonPackage rec { pname = "llm-anthropic"; - version = "0.15.1"; + version = "0.16a2"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-anthropic"; tag = version; - hash = "sha256-8bVs3MJteOTCiw7n/4pMf+oXMhsQbCSzUFVQqm2ezcE="; + hash = "sha256-jb1QetMxvDu45wX/AieBUKEk1KSKUt0heCNEYyOGj6w="; }; build-system = [ From 1927529a05eefe6e62db1b99e81e8ccebfd6954b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:17:23 -0700 Subject: [PATCH 033/146] python3Packages.llm-fragments-github: 0.3 -> 0.4 Diff: https://github.com/simonw/llm-fragments-github/compare/refs/tags/0.3...refs/tags/0.4 Changelog: https://github.com/simonw/llm-fragments-github/releases/tag/0.4/CHANGELOG.md --- .../python-modules/llm-fragments-github/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-fragments-github/default.nix b/pkgs/development/python-modules/llm-fragments-github/default.nix index dbadab8094de..9b8c3d3c5a72 100644 --- a/pkgs/development/python-modules/llm-fragments-github/default.nix +++ b/pkgs/development/python-modules/llm-fragments-github/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "llm-fragments-github"; - version = "0.3"; + version = "0.4"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-fragments-github"; tag = version; - hash = "sha256-+MNFj7auB/dUSIBDXOBaKjIYIW18GLDB55l66S37U1A="; + hash = "sha256-7i1WRix5AAEG5EXJqtaU+QY56aL0SePdqz84z+C+iYM="; }; build-system = [ From 264bef7edb35e4c70f510a99e6a8b50c2a20ed3a Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:17:29 -0700 Subject: [PATCH 034/146] python3Packages.llm-mistral: 0.12 -> 0.13 Diff: https://github.com/simonw/llm-mistral/compare/refs/tags/0.12...refs/tags/0.13 Changelog: https://github.com/simonw/llm-mistral/releases/tag/0.13/CHANGELOG.md --- pkgs/development/python-modules/llm-mistral/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-mistral/default.nix b/pkgs/development/python-modules/llm-mistral/default.nix index 016ca52b1c19..f65ed893d367 100644 --- a/pkgs/development/python-modules/llm-mistral/default.nix +++ b/pkgs/development/python-modules/llm-mistral/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "llm-mistral"; - version = "0.12"; + version = "0.13"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-mistral"; tag = version; - hash = "sha256-oNA5NFI4BZMG/V+eSHfuF/JKBX2Xr/L8EK+mf7KjPD0="; + hash = "sha256-u7Q+WJEtetapNo8WtdbnPKLZK3Q8YBjQcpZgGrK29Ic="; }; build-system = [ From 9e07fc75645d6af362a71c746325a5976e14dbfc Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:17:30 -0700 Subject: [PATCH 035/146] python3Packages.llm-ollama: 0.10.0 -> 0.11a0 Diff: https://github.com/taketwo/llm-ollama/compare/refs/tags/0.10.0...refs/tags/0.11a0 Changelog: https://github.com/taketwo/llm-ollama/releases/tag/0.11a0 --- pkgs/development/python-modules/llm-ollama/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-ollama/default.nix b/pkgs/development/python-modules/llm-ollama/default.nix index f0938ccf36b3..1a2b9de133b3 100644 --- a/pkgs/development/python-modules/llm-ollama/default.nix +++ b/pkgs/development/python-modules/llm-ollama/default.nix @@ -22,14 +22,14 @@ buildPythonPackage rec { pname = "llm-ollama"; - version = "0.10.0"; + version = "0.11a0"; pyproject = true; src = fetchFromGitHub { owner = "taketwo"; repo = "llm-ollama"; tag = version; - hash = "sha256-IA9Tb82XB+Gr6YwMVqzsw1dPtT3GWK2W/ZtuDVznF1A"; + hash = "sha256-Bmv7+mkX5kMnIv3jenXw/OFB63xEPZD19ZRPlyJEbkY="; }; build-system = [ From cc134a91d32c5464f0340eddd5639e788cc5a450 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 27 May 2025 06:17:35 -0700 Subject: [PATCH 036/146] python3Packages.llm-venice: 0.6.0 -> 0.7.0 Diff: https://github.com/ar-jan/llm-venice/compare/refs/tags/0.6.0...refs/tags/0.7.0 Changelog: https://github.com/ar-jan/llm-venice/releases/tag/0.7.0/CHANGELOG.md --- pkgs/development/python-modules/llm-venice/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-venice/default.nix b/pkgs/development/python-modules/llm-venice/default.nix index 460d814f1514..8885b55595ee 100644 --- a/pkgs/development/python-modules/llm-venice/default.nix +++ b/pkgs/development/python-modules/llm-venice/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "llm-venice"; - version = "0.6.0"; + version = "0.7.0"; pyproject = true; src = fetchFromGitHub { owner = "ar-jan"; repo = "llm-venice"; tag = version; - hash = "sha256-fHCAERIFhuovo1f+jTG6L4C/Rql8tdHZG/7p5fBLkH0="; + hash = "sha256-vsb3oXGr+2FDJnTwYomICfald1ptben28hAJ8ypKiBI="; }; build-system = [ From e8237dfe32991a25134f45c0399f8e7f29a09d89 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:35:43 -0700 Subject: [PATCH 037/146] python3Packages.llm-echo: init at 0.2 --- .../python-modules/llm-echo/default.nix | 45 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/llm-echo/default.nix diff --git a/pkgs/development/python-modules/llm-echo/default.nix b/pkgs/development/python-modules/llm-echo/default.nix new file mode 100644 index 000000000000..3347f5280145 --- /dev/null +++ b/pkgs/development/python-modules/llm-echo/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-echo, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-echo"; + version = "0.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-echo"; + tag = version; + hash = "sha256-KtdsvXJQRJ3EEJ25i6ccbVxMsWlDsxa+HJ7bFzyYGNI="; + }; + + build-system = [ + setuptools + llm + ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_echo" ]; + + passthru.tests = llm.mkPluginTest llm-echo; + + meta = { + description = "Debug plugin for LLM"; + homepage = "https://github.com/simonw/llm-echo"; + changelog = "https://github.com/simonw/llm-echo/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index c1f71fa10e16..80bed4ff6c2e 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -63,6 +63,7 @@ let llm-cmd ? false, llm-command-r ? false, llm-deepseek ? false, + llm-echo ? false, llm-fragments-github ? false, llm-fragments-pypi ? false, llm-gemini ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8bded0dc781f..ea594d439326 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8302,6 +8302,8 @@ self: super: with self; { llm-deepseek = callPackage ../development/python-modules/llm-deepseek { }; + llm-echo = callPackage ../development/python-modules/llm-echo { }; + llm-fragments-github = callPackage ../development/python-modules/llm-fragments-github { }; llm-fragments-pypi = callPackage ../development/python-modules/llm-fragments-pypi { }; From 36e9a7ddb91e5649e089d66d1caf6c1a50f19263 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:36:25 -0700 Subject: [PATCH 038/146] python3Packages.llm: 0.25 -> 0.26 Diff: https://github.com/simonw/llm/compare/refs/tags/0.25...refs/tags/0.26 Changelog: https://github.com/simonw/llm/releases/tag/0.26 We also need to update llm-echo to a pre-release build to make the tests pass. --- .../python-modules/llm-echo/default.nix | 4 +- ...1-disable-install-uninstall-commands.patch | 38 +++++++++++-------- .../python-modules/llm/default.nix | 15 +++++++- 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/llm-echo/default.nix b/pkgs/development/python-modules/llm-echo/default.nix index 3347f5280145..756c4a743b46 100644 --- a/pkgs/development/python-modules/llm-echo/default.nix +++ b/pkgs/development/python-modules/llm-echo/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "llm-echo"; - version = "0.3"; + version = "0.3a3"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-echo"; tag = version; - hash = "sha256-KtdsvXJQRJ3EEJ25i6ccbVxMsWlDsxa+HJ7bFzyYGNI="; + hash = "sha256-4345UIyaQx+mYYBAFD5AaX5YbjbnJQt8bKMD5Vl8VJc="; }; build-system = [ diff --git a/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch b/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch index 4d6280349358..a9012c98f3b5 100644 --- a/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch +++ b/pkgs/development/python-modules/llm/001-disable-install-uninstall-commands.patch @@ -1,11 +1,12 @@ -diff --git i/llm/cli.py w/llm/cli.py -index 09e4e2d..8424a5e 100644 ---- i/llm/cli.py -+++ w/llm/cli.py -@@ -2383,18 +2383,18 @@ def display_truncated(text): +diff --git a/llm/cli.py b/llm/cli.py +index 5d53e74..c2b4707 100644 +--- a/llm/cli.py ++++ b/llm/cli.py +@@ -2895,30 +2895,38 @@ def display_truncated(text): + help="Include pre-release and development versions", ) - def install(packages, upgrade, editable, force_reinstall, no_cache_dir): - """Install packages from PyPI into the same environment as LLM""" + def install(packages, upgrade, editable, force_reinstall, no_cache_dir, pre): +- """Install packages from PyPI into the same environment as LLM""" - args = ["pip", "install"] - if upgrade: - args += ["--upgrade"] @@ -15,10 +16,13 @@ index 09e4e2d..8424a5e 100644 - args += ["--force-reinstall"] - if no_cache_dir: - args += ["--no-cache-dir"] +- if pre: +- args += ["--pre"] - args += list(packages) - sys.argv = args - run_module("pip", run_name="__main__") -+ click.echo( ++ """Install packages from PyPI into the same environment as LLM. Disabled for nixpkgs.""" ++ raise click.ClickException( +"""Install command has been disabled for Nix. To install extra `llm` plugins, use the `llm.withPlugins` function. + +Example: @@ -30,16 +34,17 @@ index 09e4e2d..8424a5e 100644 +``` +""" + ) - - + + @cli.command() -@@ -2402,8 +2402,18 @@ def install(packages, upgrade, editable, force_reinstall, no_cache_dir): + @click.argument("packages", nargs=-1, required=True) @click.option("-y", "--yes", is_flag=True, help="Don't ask for confirmation") def uninstall(packages, yes): - """Uninstall Python packages from the LLM environment""" +- """Uninstall Python packages from the LLM environment""" - sys.argv = ["pip", "uninstall"] + list(packages) + (["-y"] if yes else []) - run_module("pip", run_name="__main__") -+ click.echo( ++ """Uninstall Python packages from the LLM environment. Disabled for nixpkgs.""" ++ raise click.ClickException( +"""Uninstall command has been disabled for Nix. To remove `llm` plugins, use the `llm.withPlugins` function with the desired set of plugins specified. + +Example: @@ -51,6 +56,9 @@ index 09e4e2d..8424a5e 100644 +``` +""" + ) - - + + @cli.command() +-- +2.49.0 + diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 80bed4ff6c2e..e6d693165763 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -23,7 +23,10 @@ cogapp, pytest-asyncio, pytest-httpx, + pytest-recording, sqlite-utils, + syrupy, + llm-echo, }: let /** @@ -142,7 +145,7 @@ let llm = buildPythonPackage rec { pname = "llm"; - version = "0.25"; + version = "0.26"; pyproject = true; build-system = [ setuptools ]; @@ -153,7 +156,7 @@ let owner = "simonw"; repo = "llm"; tag = version; - hash = "sha256-iH1P0VdpwIItY1In7vlM0Sn44Db23TqFp8GZ79/GMJs="; + hash = "sha256-KTlNajuZrR0kBX3LatepsNM3PfRVsQn+evEfXTu6juE="; }; patches = [ ./001-disable-install-uninstall-commands.patch ]; @@ -183,11 +186,19 @@ let numpy pytest-asyncio pytest-httpx + pytest-recording + syrupy pytestCheckHook ]; doCheck = true; + # The tests make use of `llm_echo` but that would be a circular dependency. + # So we make a local copy in this derivation, as it's a super-simple package of one file. + preCheck = '' + cp ${llm-echo.src}/llm_echo.py llm_echo.py + ''; + pytestFlagsArray = [ "-svv" "tests/" From 518d9a98567f9fe13fda9213e719ae02fa4c7e49 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:36:27 -0700 Subject: [PATCH 039/146] python3Packages.llm-anthropic: 0.16a2 -> 0.17 Diff: https://github.com/simonw/llm-anthropic/compare/refs/tags/0.16a2...refs/tags/0.17 Changelog: https://github.com/simonw/llm-anthropic/releases/tag/0.17/CHANGELOG.md --- pkgs/development/python-modules/llm-anthropic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index c0ba9772382f..f78daf8b73ed 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -14,14 +14,14 @@ buildPythonPackage rec { pname = "llm-anthropic"; - version = "0.16a2"; + version = "0.17"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-anthropic"; tag = version; - hash = "sha256-jb1QetMxvDu45wX/AieBUKEk1KSKUt0heCNEYyOGj6w="; + hash = "sha256-2fatBKZMttC5flzfC7MWCpduc3m6IOVWZiW1K2dYqis="; }; build-system = [ From c80dc765ca26c26510d679ed5968e590166f0f5f Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:36:33 -0700 Subject: [PATCH 040/146] python3Packages.llm-gemini: 0.20 -> 0.21 Diff: https://github.com/simonw/llm-gemini/compare/refs/tags/0.20...refs/tags/0.21 Changelog: https://github.com/simonw/llm-gemini/releases/tag/0.21 --- pkgs/development/python-modules/llm-gemini/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-gemini/default.nix b/pkgs/development/python-modules/llm-gemini/default.nix index e14f77bc63fe..4b746366fbdb 100644 --- a/pkgs/development/python-modules/llm-gemini/default.nix +++ b/pkgs/development/python-modules/llm-gemini/default.nix @@ -15,14 +15,14 @@ }: buildPythonPackage rec { pname = "llm-gemini"; - version = "0.20"; + version = "0.21"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-gemini"; tag = version; - hash = "sha256-haaJtJ9RqV5/n/j8PNXPS7zc332W+gU20x0wGPRdzOQ="; + hash = "sha256-aCP0YjcghzpgceuZRKGTN15wm7OIPCwcJAJJBxh78f4="; }; build-system = [ From 414b770ca537b8e1d66c1f3b10300c694e1379c5 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:36:38 -0700 Subject: [PATCH 041/146] python3Packages.llm-mistral: 0.13 -> 0.14 Diff: https://github.com/simonw/llm-mistral/compare/refs/tags/0.13...refs/tags/0.14 Changelog: https://github.com/simonw/llm-mistral/releases/tag/0.14/CHANGELOG.md --- pkgs/development/python-modules/llm-mistral/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-mistral/default.nix b/pkgs/development/python-modules/llm-mistral/default.nix index f65ed893d367..1aa42abacc6e 100644 --- a/pkgs/development/python-modules/llm-mistral/default.nix +++ b/pkgs/development/python-modules/llm-mistral/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "llm-mistral"; - version = "0.13"; + version = "0.14"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-mistral"; tag = version; - hash = "sha256-u7Q+WJEtetapNo8WtdbnPKLZK3Q8YBjQcpZgGrK29Ic="; + hash = "sha256-NuiqRA/SCjGq0hJsnHJ/vgdncIKu3oE9WqWGht7QRMc="; }; build-system = [ From 89950d8ecb3e5a973b2cd9ac760ceaca4c4941b0 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 11:36:40 -0700 Subject: [PATCH 042/146] python3Packages.llm-ollama: 0.11a0 -> 0.11.0 Diff: https://github.com/taketwo/llm-ollama/compare/refs/tags/0.11a0...refs/tags/0.11.0 Changelog: https://github.com/taketwo/llm-ollama/releases/tag/0.11.0 --- pkgs/development/python-modules/llm-ollama/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/llm-ollama/default.nix b/pkgs/development/python-modules/llm-ollama/default.nix index 1a2b9de133b3..fa7de12f294c 100644 --- a/pkgs/development/python-modules/llm-ollama/default.nix +++ b/pkgs/development/python-modules/llm-ollama/default.nix @@ -22,14 +22,14 @@ buildPythonPackage rec { pname = "llm-ollama"; - version = "0.11a0"; + version = "0.11.0"; pyproject = true; src = fetchFromGitHub { owner = "taketwo"; repo = "llm-ollama"; tag = version; - hash = "sha256-Bmv7+mkX5kMnIv3jenXw/OFB63xEPZD19ZRPlyJEbkY="; + hash = "sha256-iwrDqrPt/zwXypBwD7zDAcen4fQq6PXl7Xj5VUL2KWA="; }; build-system = [ From 2074fa159b50bb41ac326d85e256d6fec30bfe5e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 13:30:26 -0700 Subject: [PATCH 043/146] python3Packages.quickjs: init at 1.19.4 Due to the new quickjs release on 2025-04-26, there's a minor patch needed to fix things up. --- ...pdate-for-QuickJS-2025-04-26-release.patch | 66 +++++++++++++++++++ .../python-modules/quickjs/default.nix | 58 ++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 126 insertions(+) create mode 100644 pkgs/development/python-modules/quickjs/0001-Update-for-QuickJS-2025-04-26-release.patch create mode 100644 pkgs/development/python-modules/quickjs/default.nix diff --git a/pkgs/development/python-modules/quickjs/0001-Update-for-QuickJS-2025-04-26-release.patch b/pkgs/development/python-modules/quickjs/0001-Update-for-QuickJS-2025-04-26-release.patch new file mode 100644 index 000000000000..05501f6a220c --- /dev/null +++ b/pkgs/development/python-modules/quickjs/0001-Update-for-QuickJS-2025-04-26-release.patch @@ -0,0 +1,66 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Philip Taron +Date: Thu, 29 May 2025 17:16:43 -0700 +Subject: [PATCH] Update for QuickJS 2025-04-26 release + +Signed-off-by: Philip Taron +--- + setup.py | 6 +++--- + test_quickjs.py | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/setup.py b/setup.py +index 9d17af357dcadc40478789ef9c82ac82632967d3..d0b4ff2bd7f3450f6f055ee9e2eda6b591d70689 100644 +--- a/setup.py ++++ b/setup.py +@@ -16,7 +16,7 @@ if sys.platform == "win32": + # system PATH when compiling. + # 3. The code below will moneky-patch distutils to work. + import distutils.cygwinccompiler +- distutils.cygwinccompiler.get_msvcr = lambda: [] ++ distutils.cygwinccompiler.get_msvcr = lambda: [] + # Make sure that pthreads is linked statically, otherwise we run into problems + # on computers where it is not installed. + extra_link_args = ["-static"] +@@ -26,7 +26,7 @@ def get_c_sources(include_headers=False): + sources = [ + "module.c", + "upstream-quickjs/cutils.c", +- "upstream-quickjs/libbf.c", ++ "upstream-quickjs/dtoa.c", + "upstream-quickjs/libregexp.c", + "upstream-quickjs/libunicode.c", + "upstream-quickjs/quickjs.c", +@@ -34,7 +34,7 @@ def get_c_sources(include_headers=False): + if include_headers: + sources += [ + "upstream-quickjs/cutils.h", +- "upstream-quickjs/libbf.h", ++ "upstream-quickjs/dtoa.h", + "upstream-quickjs/libregexp-opcode.h", + "upstream-quickjs/libregexp.h", + "upstream-quickjs/libunicode-table.h", +diff --git a/test_quickjs.py b/test_quickjs.py +index 1f6dec7ccd15092e98e80a9139ae2acff359b010..9444234655fba9d932ce92c82b9d8da8fe83ad5b 100644 +--- a/test_quickjs.py ++++ b/test_quickjs.py +@@ -105,8 +105,8 @@ class Context(unittest.TestCase): + else: + self.fail("Expected exception.") + +- self.assertIn("at funcA (:3)\n", msg) +- self.assertIn("at funcB (:6)\n", msg) ++ self.assertIn("at funcA (:3:24)\n", msg) ++ self.assertIn("at funcB (:6:26)\n", msg) + + def test_memory_limit(self): + code = """ +@@ -508,7 +508,7 @@ class FunctionTest(unittest.TestCase): + """) + + self.assertEqual(f(100), 100) +- limit = 500 ++ limit = 1500 + with self.assertRaises(quickjs.StackOverflow): + f(limit) + f.set_max_stack_size(2000 * limit) diff --git a/pkgs/development/python-modules/quickjs/default.nix b/pkgs/development/python-modules/quickjs/default.nix new file mode 100644 index 000000000000..1d5726bee259 --- /dev/null +++ b/pkgs/development/python-modules/quickjs/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + poetry-core, + pytestCheckHook, + pkgs, +}: + +let + inherit (pkgs) quickjs srcOnly; +in + +buildPythonPackage rec { + pname = "quickjs"; + version = "1.19.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "PetterS"; + repo = "quickjs"; + tag = version; + hash = "sha256-nLloXJWOuaK/enZfwXJI94IcsAMYrkBtG4i3gmxuhfw="; + }; + + patches = [ ./0001-Update-for-QuickJS-2025-04-26-release.patch ]; + + # Upstream uses Git submodules; let's de-vendor and use Nix, so that we gain security fixes like + # https://github.com/NixOS/nixpkgs/pull/407469 + prePatch = '' + rmdir upstream-quickjs + ln -s ${srcOnly quickjs} upstream-quickjs + ''; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail poetry>=1.5.0 poetry \ + --replace-fail poetry poetry-core \ + --replace-fail 'version = "0"' 'version = "${version}"' + ''; + + build-system = [ + poetry-core + setuptools + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "quickjs" ]; + + meta = { + description = "Python wrapper around the quickjs C library"; + homepage = "https://github.com/PetterS/quickjs"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea594d439326..08ce80666cde 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14898,6 +14898,8 @@ self: super: with self; { queuelib = callPackage ../development/python-modules/queuelib { }; + quickjs = callPackage ../development/python-modules/quickjs { }; + quil = callPackage ../development/python-modules/quil { }; quixote = callPackage ../development/python-modules/quixote { }; From 7438a10a796b646295d7d804bf79f8dc55fd003e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 13:42:18 -0700 Subject: [PATCH 044/146] python3Packages.llm-tools-quickjs: init at 0.1 --- .../llm-tools-quickjs/default.nix | 50 +++++++++++++++++++ .../python-modules/llm/default.nix | 4 +- pkgs/top-level/python-packages.nix | 2 + 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/llm-tools-quickjs/default.nix diff --git a/pkgs/development/python-modules/llm-tools-quickjs/default.nix b/pkgs/development/python-modules/llm-tools-quickjs/default.nix new file mode 100644 index 000000000000..b8f934c5a5b6 --- /dev/null +++ b/pkgs/development/python-modules/llm-tools-quickjs/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + quickjs, + llm, + llm-tools-quickjs, + llm-echo, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-tools-quickjs"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-tools-quickjs"; + tag = version; + hash = "sha256-Si3VcHnRUj8Q/N8pRhltPOM6K64TX9DBH/u4WQxQJjQ="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ quickjs ]; + + nativeCheckInputs = [ + llm-echo + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_tools_quickjs" ]; + + passthru.tests = llm.mkPluginTest llm-tools-quickjs; + + meta = { + description = "JavaScript execution as a tool for LLM"; + homepage = "https://github.com/simonw/llm-tools-quickjs"; + changelog = "https://github.com/simonw/llm-tools-quickjs/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index e6d693165763..826a502de7f8 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -82,6 +82,7 @@ let llm-sentence-transformers ? false, llm-templates-fabric ? false, llm-templates-github ? false, + llm-tools-quickjs ? false, llm-venice ? false, llm-video-frames ? false, ... @@ -162,7 +163,8 @@ let patches = [ ./001-disable-install-uninstall-commands.patch ]; postPatch = '' - substituteInPlace llm/cli.py --replace-fail "@listOfPackagedPlugins@" "$(< ${listOfPackagedPlugins})" + substituteInPlace llm/cli.py \ + --replace-fail "@listOfPackagedPlugins@" "$(< ${listOfPackagedPlugins})" ''; dependencies = [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 08ce80666cde..8bdcd385da26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8334,6 +8334,8 @@ self: super: with self; { llm-templates-github = callPackage ../development/python-modules/llm-templates-github { }; + llm-tools-quickjs = callPackage ../development/python-modules/llm-tools-quickjs { }; + llm-venice = callPackage ../development/python-modules/llm-venice { }; llm-video-frames = callPackage ../development/python-modules/llm-video-frames { }; From d935c30c3d2bcee3819437ae7ee4e28befd63735 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 13:54:01 -0700 Subject: [PATCH 045/146] python3Packages.llm-tools-sqlite: init at 0.1 --- .../llm-tools-sqlite/default.nix | 47 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/llm-tools-sqlite/default.nix diff --git a/pkgs/development/python-modules/llm-tools-sqlite/default.nix b/pkgs/development/python-modules/llm-tools-sqlite/default.nix new file mode 100644 index 000000000000..283084b8efc0 --- /dev/null +++ b/pkgs/development/python-modules/llm-tools-sqlite/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-tools-sqlite, + llm-echo, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-tools-sqlite"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-tools-sqlite"; + tag = version; + hash = "sha256-VAmK4cXzZWTWCU92TwMdhNJPvYPZ88t5BZe8vo60SZY="; + }; + + build-system = [ + setuptools + llm + ]; + + nativeCheckInputs = [ + llm-echo + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_tools_sqlite" ]; + + passthru.tests = llm.mkPluginTest llm-tools-sqlite; + + meta = { + description = "LLM tools for running queries against SQLite"; + homepage = "https://github.com/simonw/llm-tools-sqlite"; + changelog = "https://github.com/simonw/llm-tools-sqlite/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 826a502de7f8..a1b128be406a 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -83,6 +83,7 @@ let llm-templates-fabric ? false, llm-templates-github ? false, llm-tools-quickjs ? false, + llm-tools-sqlite ? false, llm-venice ? false, llm-video-frames ? false, ... diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8bdcd385da26..210d61727d55 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8336,6 +8336,8 @@ self: super: with self; { llm-tools-quickjs = callPackage ../development/python-modules/llm-tools-quickjs { }; + llm-tools-sqlite = callPackage ../development/python-modules/llm-tools-sqlite { }; + llm-venice = callPackage ../development/python-modules/llm-venice { }; llm-video-frames = callPackage ../development/python-modules/llm-video-frames { }; From 550a2409216c8318dfe1a71fe4daf040080f6793 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 13:58:30 -0700 Subject: [PATCH 046/146] python3Packages.llm-tools-datasette: init at 0.1 --- .../llm-tools-datasette/default.nix | 49 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/llm-tools-datasette/default.nix diff --git a/pkgs/development/python-modules/llm-tools-datasette/default.nix b/pkgs/development/python-modules/llm-tools-datasette/default.nix new file mode 100644 index 000000000000..5229c71bb6ea --- /dev/null +++ b/pkgs/development/python-modules/llm-tools-datasette/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-tools-datasette, + llm-echo, + pytestCheckHook, + pytest-httpx, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-tools-datasette"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-tools-datasette"; + tag = version; + hash = "sha256-Us9bPk2qpTlgJqQ0Cl9QdeqW+h8j+pmnkriM0WXEyyA="; + }; + + build-system = [ + setuptools + llm + ]; + + nativeCheckInputs = [ + llm-echo + pytestCheckHook + pytest-httpx + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_tools_datasette" ]; + + passthru.tests = llm.mkPluginTest llm-tools-datasette; + + meta = { + description = "Expose Datasette instances to LLM as a tool"; + homepage = "https://github.com/simonw/llm-tools-datasette"; + changelog = "https://github.com/simonw/llm-tools-datasette/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index a1b128be406a..d17063c115fa 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -82,6 +82,7 @@ let llm-sentence-transformers ? false, llm-templates-fabric ? false, llm-templates-github ? false, + llm-tools-datasette ? false, llm-tools-quickjs ? false, llm-tools-sqlite ? false, llm-venice ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 210d61727d55..24cbe8744992 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8334,6 +8334,8 @@ self: super: with self; { llm-templates-github = callPackage ../development/python-modules/llm-templates-github { }; + llm-tools-datasette = callPackage ../development/python-modules/llm-tools-datasette { }; + llm-tools-quickjs = callPackage ../development/python-modules/llm-tools-quickjs { }; llm-tools-sqlite = callPackage ../development/python-modules/llm-tools-sqlite { }; From 4397592022cbabe3b7a09f22db08de56164e2b76 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:02:21 -0700 Subject: [PATCH 047/146] python3Packages.llm-llama-server: init at 0.2 --- .../llm-llama-server/default.nix | 47 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/llm-llama-server/default.nix diff --git a/pkgs/development/python-modules/llm-llama-server/default.nix b/pkgs/development/python-modules/llm-llama-server/default.nix new file mode 100644 index 000000000000..e6fcb5b3498c --- /dev/null +++ b/pkgs/development/python-modules/llm-llama-server/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-llama-server, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-llama-server"; + version = "0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-llama-server"; + tag = version; + hash = "sha256-jtFSfGu3JhNUfTsspY+OFLTMt9jQrh6R05sK9KBOKTE="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_llama_server" ]; + + passthru.tests = llm.mkPluginTest llm-llama-server; + + meta = { + description = "LLM plugin providing access to Mistral models using the Mistral API"; + homepage = "Interact with llama-server models"; + changelog = "https://github.com/simonw/llm-llama-server/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index d17063c115fa..b05e1de0eeda 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -75,6 +75,7 @@ let llm-groq ? false, llm-hacker-news ? false, llm-jq ? false, + llm-llama-server ? false, llm-mistral ? false, llm-ollama ? false, llm-openai-plugin ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 24cbe8744992..31744332843a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8320,6 +8320,8 @@ self: super: with self; { llm-jq = callPackage ../development/python-modules/llm-jq { }; + llm-llama-server = callPackage ../development/python-modules/llm-llama-server { }; + llm-mistral = callPackage ../development/python-modules/llm-mistral { }; llm-ollama = callPackage ../development/python-modules/llm-ollama { }; From 2ee7c8ea88ed8e327b6af64ae90a4178a1612dc4 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:09:24 -0700 Subject: [PATCH 048/146] python3Packages.llm-tools-simpleeval: init at 0.1.1 --- .../llm-tools-simpleeval/default.nix | 50 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/llm-tools-simpleeval/default.nix diff --git a/pkgs/development/python-modules/llm-tools-simpleeval/default.nix b/pkgs/development/python-modules/llm-tools-simpleeval/default.nix new file mode 100644 index 000000000000..50a9a3f9ba24 --- /dev/null +++ b/pkgs/development/python-modules/llm-tools-simpleeval/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-tools-simpleeval, + llm-echo, + pytestCheckHook, + simpleeval, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-tools-simpleeval"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-tools-simpleeval"; + tag = version; + hash = "sha256-IOmYu7zoim7Co/xIm5VLaGkCPI0o+2Nb2Pu3U2fH0BU="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ simpleeval ]; + + nativeCheckInputs = [ + llm-echo + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_tools_simpleeval" ]; + + passthru.tests = llm.mkPluginTest llm-tools-simpleeval; + + meta = { + description = "Make simple_eval available as an LLM tool"; + homepage = "https://github.com/simonw/llm-tools-simpleeval"; + changelog = "https://github.com/simonw/llm-tools-simpleeval/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index b05e1de0eeda..4cfc7e21ef7a 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -85,6 +85,7 @@ let llm-templates-github ? false, llm-tools-datasette ? false, llm-tools-quickjs ? false, + llm-tools-simpleeval ? false, llm-tools-sqlite ? false, llm-venice ? false, llm-video-frames ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 31744332843a..91a2b06a722e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8340,6 +8340,8 @@ self: super: with self; { llm-tools-quickjs = callPackage ../development/python-modules/llm-tools-quickjs { }; + llm-tools-simpleeval = callPackage ../development/python-modules/llm-tools-simpleeval { }; + llm-tools-sqlite = callPackage ../development/python-modules/llm-tools-sqlite { }; llm-venice = callPackage ../development/python-modules/llm-venice { }; From 3d646501ff9c68746a85dac2413d72bbbf1c15ca Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:21:39 -0700 Subject: [PATCH 049/146] python3Packages.llm-fragments-reader: init at 0.1 --- .../llm-fragments-reader/default.nix | 50 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/llm-fragments-reader/default.nix diff --git a/pkgs/development/python-modules/llm-fragments-reader/default.nix b/pkgs/development/python-modules/llm-fragments-reader/default.nix new file mode 100644 index 000000000000..72aa5aaea539 --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-reader/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + httpx, + httpx-sse, + llm, + llm-fragments-reader, + pytestCheckHook, + pytest-asyncio, + pytest-httpx, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-fragments-reader"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-fragments-reader"; + tag = version; + hash = "sha256-2xdvOpMGsTtnerrlGiVSHoJrM+GQ7Zgv+zn2SAwYAL4="; + }; + + build-system = [ + setuptools + llm + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-httpx + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_fragments_reader" ]; + + passthru.tests = llm.mkPluginTest llm-fragments-reader; + + meta = { + description = "Run URLs through the Jina Reader API"; + homepage = "https://github.com/simonw/llm-fragments-reader"; + changelog = "https://github.com/simonw/llm-fragments-reader/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 4cfc7e21ef7a..3089cdb53746 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -69,6 +69,7 @@ let llm-echo ? false, llm-fragments-github ? false, llm-fragments-pypi ? false, + llm-fragments-reader ? false, llm-gemini ? false, llm-gguf ? false, llm-grok ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 91a2b06a722e..eb077daabfdc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8308,6 +8308,8 @@ self: super: with self; { llm-fragments-pypi = callPackage ../development/python-modules/llm-fragments-pypi { }; + llm-fragments-reader = callPackage ../development/python-modules/llm-fragments-reader { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From 8d872ce25063db13f18278b8885c501f8f5f469b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:25:51 -0700 Subject: [PATCH 050/146] python3Packages.llm-docs: init at 0.2.1 --- .../python-modules/llm-docs/default.nix | 38 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/llm-docs/default.nix diff --git a/pkgs/development/python-modules/llm-docs/default.nix b/pkgs/development/python-modules/llm-docs/default.nix new file mode 100644 index 000000000000..8ed974571607 --- /dev/null +++ b/pkgs/development/python-modules/llm-docs/default.nix @@ -0,0 +1,38 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + llm, + llm-docs, +}: + +buildPythonPackage rec { + pname = "llm-docs"; + version = "0.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-docs"; + tag = version; + hash = "sha256-+Ha6L2h8p/yA073MfO2Uvd6E4bKA2xAvaBWtvjqglOw="; + }; + + build-system = [ + setuptools + llm + ]; + + pythonImportsCheck = [ "llm_docs" ]; + + passthru.tests = llm.mkPluginTest llm-docs; + + meta = { + description = "Ask questions of LLM documentation using LLM"; + homepage = "https://github.com/simonw/llm-docs"; + changelog = "https://github.com/simonw/llm-docs/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 3089cdb53746..3724793c45d2 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -66,6 +66,7 @@ let llm-cmd ? false, llm-command-r ? false, llm-deepseek ? false, + llm-docs ? false, llm-echo ? false, llm-fragments-github ? false, llm-fragments-pypi ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eb077daabfdc..dfdcd352fe26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8302,6 +8302,8 @@ self: super: with self; { llm-deepseek = callPackage ../development/python-modules/llm-deepseek { }; + llm-docs = callPackage ../development/python-modules/llm-docs { }; + llm-echo = callPackage ../development/python-modules/llm-echo { }; llm-fragments-github = callPackage ../development/python-modules/llm-fragments-github { }; From e2e0a82a49c0c90f555e06e44733466af418bd8e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:58:44 -0700 Subject: [PATCH 051/146] python3Packages.icudiff: init at 2.0.7 This was added as a by-name package but it's actually also a library. I've turned the tests off on Darwin; there's an odd utf-8 error and a permissions error, and both look related to the Nix sandboxing. --- pkgs/by-name/ic/icdiff/package.nix | 42 +------------ .../0001-Don-t-test-black-or-flake8.patch | 35 +++++++++++ .../python-modules/icdiff/default.nix | 61 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 4 files changed, 100 insertions(+), 40 deletions(-) create mode 100644 pkgs/development/python-modules/icdiff/0001-Don-t-test-black-or-flake8.patch create mode 100644 pkgs/development/python-modules/icdiff/default.nix diff --git a/pkgs/by-name/ic/icdiff/package.nix b/pkgs/by-name/ic/icdiff/package.nix index d34b976f068e..98144d145cd0 100644 --- a/pkgs/by-name/ic/icdiff/package.nix +++ b/pkgs/by-name/ic/icdiff/package.nix @@ -1,41 +1,3 @@ -{ - lib, - python3Packages, - fetchFromGitHub, - bash, - git, - less, -}: +{ python3Packages }: -python3Packages.buildPythonApplication rec { - pname = "icdiff"; - version = "2.0.7"; - - src = fetchFromGitHub { - owner = "jeffkaufman"; - repo = "icdiff"; - tag = "release-${version}"; - hash = "sha256-XOw/xhPGlzi1hAgzQ1EtioUM476A+lQWLlvvaxd9j08="; - }; - - # error: could not lock config file /homeless-shelter/.gitconfig: No such file or directory - doCheck = false; - - nativeCheckInputs = [ - bash - git - less - ]; - - checkPhase = '' - patchShebangs test.sh - ./test.sh ${python3Packages.python.interpreter} - ''; - - meta = { - homepage = "https://www.jefftk.com/icdiff"; - description = "Side-by-side highlighted command line diffs"; - maintainers = [ ]; - license = lib.licenses.psfl; - }; -} +python3Packages.toPythonApplication python3Packages.icdiff diff --git a/pkgs/development/python-modules/icdiff/0001-Don-t-test-black-or-flake8.patch b/pkgs/development/python-modules/icdiff/0001-Don-t-test-black-or-flake8.patch new file mode 100644 index 000000000000..3e8a067c7841 --- /dev/null +++ b/pkgs/development/python-modules/icdiff/0001-Don-t-test-black-or-flake8.patch @@ -0,0 +1,35 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Philip Taron +Date: Thu, 29 May 2025 14:47:58 -0700 +Subject: [PATCH] Don't test black or flake8 + +Signed-off-by: Philip Taron +--- + test.sh | 14 -------------- + 1 file changed, 14 deletions(-) + +diff --git a/test.sh b/test.sh +index 1dd6c4be579e8a61d2d284b042c54cd2a1e0ff77..dc9ecab4a9097878a0a65c45df38a4fa25eb9fa2 100755 +--- a/test.sh ++++ b/test.sh +@@ -210,20 +210,6 @@ function ensure_installed() { + fi + } + +-ensure_installed "black" +-echo 'Running black formatter...' +-if ! black icdiff --quiet --line-length 79 --check; then +- echo "" +- echo 'Consider running `black icdiff --line-length 79`' +- fail +-fi +- +-ensure_installed "flake8" +-echo 'Running flake8 linter...' +-if ! flake8 icdiff; then +- fail +-fi +- + if ! $REGOLD; then + echo PASS + fi diff --git a/pkgs/development/python-modules/icdiff/default.nix b/pkgs/development/python-modules/icdiff/default.nix new file mode 100644 index 000000000000..b1bd7addd69b --- /dev/null +++ b/pkgs/development/python-modules/icdiff/default.nix @@ -0,0 +1,61 @@ +{ + lib, + stdenv, + python, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + writableTmpDirAsHomeHook, + pkgs, +}: +let + inherit (pkgs) bash git less; +in + +buildPythonPackage rec { + pname = "icdiff"; + version = "2.0.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jeffkaufman"; + repo = "icdiff"; + tag = "release-${version}"; + hash = "sha256-XOw/xhPGlzi1hAgzQ1EtioUM476A+lQWLlvvaxd9j08="; + leaveDotGit = true; + }; + + patches = [ ./0001-Don-t-test-black-or-flake8.patch ]; + + build-system = [ setuptools ]; + + pythonImportsCheck = [ "icdiff" ]; + + nativeCheckInputs = [ + bash + git + less + writableTmpDirAsHomeHook + ]; + + # Odd behavior in the sandbox + doCheck = !stdenv.hostPlatform.isDarwin; + + checkPhase = '' + runHook preCheck + + patchShebangs test.sh + ./test.sh ${python.interpreter} + + runHook postCheck + ''; + + meta = { + description = "Improved colorized diff"; + homepage = "https://github.com/jeffkaufman/icdiff"; + changelog = "https://github.com/jeffkaufman/icdiff/releases/tag/release-${version}/CHANGELOG.md"; + license = lib.licenses.psfl; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dfdcd352fe26..9ac94ee07768 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6650,6 +6650,8 @@ self: super: with self; { icalevents = callPackage ../development/python-modules/icalevents { }; + icdiff = callPackage ../development/python-modules/icdiff { }; + icecream = callPackage ../development/python-modules/icecream { }; iceportal = callPackage ../development/python-modules/iceportal { }; From 8ef5aeead23e5e15fbb82b4bdb2d4c266995ebdc Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 15:26:10 -0700 Subject: [PATCH 052/146] python3Packages.pytest-icudiff: init at 0.5-unstable-2024-09-04 --- .../python-modules/pytest-icdiff/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-icdiff/default.nix diff --git a/pkgs/development/python-modules/pytest-icdiff/default.nix b/pkgs/development/python-modules/pytest-icdiff/default.nix new file mode 100644 index 000000000000..6b0ba2adfd42 --- /dev/null +++ b/pkgs/development/python-modules/pytest-icdiff/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + icdiff, + pprintpp, + pytest, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "pytest-icdiff"; + version = "0.5-unstable-2024-09-04"; + pyproject = true; + + src = fetchFromGitHub { + owner = "hjwp"; + repo = "pytest-icdiff"; + rev = "6e2fb8de35e37428a9f7a268c8abb57e9ee285e5"; + hash = "sha256-kSeGz5IExldgi955XOEkQnc8uqxkbyvuDOdz9y3AFIY="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + pytest + icdiff + pprintpp + ]; + + # These are failing on the main branch; disable for now + disabledTests = [ + "test_long_dict" + "test_mutliline_strings_have_no_escaped_newlines" + ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "pytest_icdiff" ]; + + meta = { + description = "Better error messages in pytest assertions using icdiff"; + homepage = "https://github.com/hjwp/pytest-icdiff"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9ac94ee07768..b4acb2367c0a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13865,6 +13865,8 @@ self: super: with self; { pytest-httpx = callPackage ../development/python-modules/pytest-httpx { }; + pytest-icdiff = callPackage ../development/python-modules/pytest-icdiff { }; + pytest-image-diff = callPackage ../development/python-modules/pytest-image-diff { }; pytest-instafail = callPackage ../development/python-modules/pytest-instafail { }; From 6a92dd13019cd592515b073f57dc8411d5e48040 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 15:28:03 -0700 Subject: [PATCH 053/146] python3Packages.symbex: init at 2.0 --- .../python-modules/symbex/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/symbex/default.nix diff --git a/pkgs/development/python-modules/symbex/default.nix b/pkgs/development/python-modules/symbex/default.nix new file mode 100644 index 000000000000..7790641ab4fc --- /dev/null +++ b/pkgs/development/python-modules/symbex/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + click, + pytestCheckHook, + pyyaml, + pytest-icdiff, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "symbex"; + version = "2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "symbex"; + tag = version; + hash = "sha256-swg98z4DpQJ5rq7tdsd3FofbYF7O5S+9ZR0weoM2DoI="; + }; + + build-system = [ setuptools ]; + + dependencies = [ click ]; + + pythonImportsCheck = [ "symbex" ]; + + nativeCheckInputs = [ + pytestCheckHook + pyyaml + pytest-icdiff + writableTmpDirAsHomeHook + ]; + + meta = { + description = "Ask questions of LLM documentation using LLM"; + homepage = "https://github.com/simonw/llm-docs"; + changelog = "https://github.com/simonw/llm-docs/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b4acb2367c0a..954728996dbe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17075,6 +17075,8 @@ self: super: with self; { sybil = callPackage ../development/python-modules/sybil { }; + symbex = callPackage ../development/python-modules/symbex { }; + symbolic = callPackage ../development/python-modules/symbolic { }; symengine = callPackage ../development/python-modules/symengine { inherit (pkgs) symengine; }; From 2db9fe2fd0a179a69cf50136000e8dae94f6d623 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 15:34:51 -0700 Subject: [PATCH 054/146] python3Packages.llm-fragments-symbex: init at 0.1 --- .../llm-fragments-symbex/default.nix | 48 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/llm-fragments-symbex/default.nix diff --git a/pkgs/development/python-modules/llm-fragments-symbex/default.nix b/pkgs/development/python-modules/llm-fragments-symbex/default.nix new file mode 100644 index 000000000000..2c1611ab2e27 --- /dev/null +++ b/pkgs/development/python-modules/llm-fragments-symbex/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + symbex, + llm, + llm-fragments-symbex, + pytestCheckHook, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-fragments-symbex"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-fragments-symbex"; + tag = version; + hash = "sha256-LECMHv4tGMCY60JU68y2Sfxp97Px7T/RJVhYVDSFCy4="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ symbex ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_fragments_symbex" ]; + + passthru.tests = llm.mkPluginTest llm-fragments-symbex; + + meta = { + description = "LLM fragment loader for Python symbols"; + homepage = "https://github.com/simonw/llm-fragments-symbex"; + changelog = "https://github.com/simonw/llm-fragments-symbex/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 3724793c45d2..7a87bd3c121f 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -71,6 +71,7 @@ let llm-fragments-github ? false, llm-fragments-pypi ? false, llm-fragments-reader ? false, + llm-fragments-symbex ? false, llm-gemini ? false, llm-gguf ? false, llm-grok ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 954728996dbe..df094c7711b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8314,6 +8314,8 @@ self: super: with self; { llm-fragments-reader = callPackage ../development/python-modules/llm-fragments-reader { }; + llm-fragments-symbex = callPackage ../development/python-modules/llm-fragments-symbex { }; + llm-gemini = callPackage ../development/python-modules/llm-gemini { }; llm-gguf = callPackage ../development/python-modules/llm-gguf { }; From cedea09b469f909744058e12ad260630e54cc980 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 15:42:40 -0700 Subject: [PATCH 055/146] python3Packages.files-to-prompt: init at 0.6 It was previously packaged in `pkgs/by-name`, but is also a Python package in addition to an application. --- pkgs/by-name/fi/files-to-prompt/package.nix | 44 +----------------- .../files-to-prompt/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 49 insertions(+), 42 deletions(-) create mode 100644 pkgs/development/python-modules/files-to-prompt/default.nix diff --git a/pkgs/by-name/fi/files-to-prompt/package.nix b/pkgs/by-name/fi/files-to-prompt/package.nix index b671e52e9504..bba3859edb6b 100644 --- a/pkgs/by-name/fi/files-to-prompt/package.nix +++ b/pkgs/by-name/fi/files-to-prompt/package.nix @@ -1,43 +1,3 @@ -{ - lib, - python3Packages, - fetchFromGitHub, - versionCheckHook, -}: +{ python3Packages }: -python3Packages.buildPythonApplication rec { - pname = "files-to-prompt"; - version = "0.6"; - pyproject = true; - - src = fetchFromGitHub { - owner = "simonw"; - repo = "files-to-prompt"; - tag = version; - hash = "sha256-LWp/DNP3bsh7/goQGkpi4x2N11tRuhLVh2J8H6AUH0w="; - }; - - build-system = with python3Packages; [ - setuptools - ]; - - dependencies = with python3Packages; [ - click - ]; - - nativeCheckInputs = with python3Packages; [ - pytestCheckHook - versionCheckHook - ]; - - versionCheckProgramArg = "--version"; - - meta = { - description = "Concatenate a directory full of files into a single prompt for use with LLMs"; - homepage = "https://github.com/simonw/files-to-prompt/"; - changelog = "https://github.com/simonw/files-to-prompt/releases/tag/${src.tag}"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ erethon ]; - mainProgram = "files-to-prompt"; - }; -} +python3Packages.toPythonApplication python3Packages.files-to-prompt diff --git a/pkgs/development/python-modules/files-to-prompt/default.nix b/pkgs/development/python-modules/files-to-prompt/default.nix new file mode 100644 index 000000000000..f4392672429a --- /dev/null +++ b/pkgs/development/python-modules/files-to-prompt/default.nix @@ -0,0 +1,45 @@ +{ + lib, + click, + setuptools, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + versionCheckHook, +}: + +buildPythonPackage rec { + pname = "files-to-prompt"; + version = "0.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "files-to-prompt"; + tag = version; + hash = "sha256-LWp/DNP3bsh7/goQGkpi4x2N11tRuhLVh2J8H6AUH0w="; + }; + + build-system = [ setuptools ]; + + dependencies = [ click ]; + + nativeCheckInputs = [ + pytestCheckHook + versionCheckHook + ]; + + versionCheckProgramArg = "--version"; + + meta = { + mainProgram = "files-to-prompt"; + description = "Concatenate a directory full of files into a single prompt for use with LLMs"; + homepage = "https://github.com/simonw/files-to-prompt"; + changelog = "https://github.com/simonw/files-to-prompt/releases/tag/${src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + erethon + philiptaron + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index df094c7711b4..9043f37f599f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4967,6 +4967,8 @@ self: super: with self; { filelock = callPackage ../development/python-modules/filelock { }; + files-to-prompt = callPackage ../development/python-modules/files-to-prompt { }; + filetype = callPackage ../development/python-modules/filetype { }; filterpy = callPackage ../development/python-modules/filterpy { }; From 5aed3c68318cc13423e70a3c5f9ba3add173d212 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 15:59:15 -0700 Subject: [PATCH 056/146] python3Packages.llm-git: init at 0.2.2 --- .../python-modules/llm-git/default.nix | 62 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 65 insertions(+) create mode 100644 pkgs/development/python-modules/llm-git/default.nix diff --git a/pkgs/development/python-modules/llm-git/default.nix b/pkgs/development/python-modules/llm-git/default.nix new file mode 100644 index 000000000000..39c66027c601 --- /dev/null +++ b/pkgs/development/python-modules/llm-git/default.nix @@ -0,0 +1,62 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + click, + deepmerge, + pyyaml, + rich, + pygments, + llm, + llm-git, + pytestCheckHook, + pytest-cov-stub, + pytest-asyncio, + pytest-httpx, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-git"; + version = "0.2.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "OttoAllmendinger"; + repo = "llm-git"; + tag = "v${version}"; + hash = "sha256-LcIsJPQgZ4gj2t7sSa0Wu35WHWYyquZZTS/UxojH+XU="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ + click + deepmerge + pyyaml + rich + pygments + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_git" ]; + + passthru.tests = llm.mkPluginTest llm-git; + + meta = { + description = "AI-powered Git commands for the LLM CLI tool"; + homepage = "https://github.com/OttoAllmendinger/llm-git"; + changelog = "https://github.com/OttoAllmendinger/llm-git/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 7a87bd3c121f..feaf4006c6a2 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -74,6 +74,7 @@ let llm-fragments-symbex ? false, llm-gemini ? false, llm-gguf ? false, + llm-git ? false, llm-grok ? false, llm-groq ? false, llm-hacker-news ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9043f37f599f..5e7d1c43ff59 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8322,6 +8322,8 @@ self: super: with self; { llm-gguf = callPackage ../development/python-modules/llm-gguf { }; + llm-git = callPackage ../development/python-modules/llm-git { }; + llm-grok = callPackage ../development/python-modules/llm-grok { }; llm-groq = callPackage ../development/python-modules/llm-groq { }; From 727e10522cfba95c6935fc0ceee774376d8c83ba Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 16:06:40 -0700 Subject: [PATCH 057/146] llm: cap the derivation name to something sensible --- .../development/python-modules/llm/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index feaf4006c6a2..2be447500aac 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -99,11 +99,19 @@ let # Filter to just the attributes which are set to a true value. setArgs = lib.filterAttrs (name: lib.id) args; - # Make a string with those names separated with a dash. - setArgsStr = lib.concatStringsSep "-" (lib.attrNames setArgs); - - # Make the derivation name reflect what's inside it. - drvName = if lib.stringLength setArgsStr == 0 then "llm" else "llm-with-${setArgsStr}"; + # Make the derivation name reflect what's inside it, up to a certain limit. + setArgNames = lib.attrNames setArgs; + drvName = + let + len = builtins.length setArgNames; + in + if len == 0 then + "llm-${llm.version}" + else if len > 20 then + "llm-${llm.version}-with-${toString len}-plugins" + else + # Make a string with those names separated with a dash. + "llm-${llm.version}-with-${lib.concatStringsSep "-" setArgNames}"; # Make a python environment with just those plugins. python-environment = python.withPackages ( From 6fba136127cd770810372af0894b603d8d1041c1 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 29 May 2025 14:17:08 -0700 Subject: [PATCH 058/146] python3Packages.llm-pdf-to-images: init at 0.1 --- .../llm-pdf-to-images/default.nix | 49 +++++++++++++++++++ .../python-modules/llm/default.nix | 1 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/llm-pdf-to-images/default.nix diff --git a/pkgs/development/python-modules/llm-pdf-to-images/default.nix b/pkgs/development/python-modules/llm-pdf-to-images/default.nix new file mode 100644 index 000000000000..bdf5d4ae785f --- /dev/null +++ b/pkgs/development/python-modules/llm-pdf-to-images/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pymupdf, + llm, + llm-pdf-to-images, + pytestCheckHook, + pytest-asyncio, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "llm-pdf-to-images"; + version = "0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "llm-pdf-to-images"; + tag = version; + hash = "sha256-UWtCPdKrGE93NNjCroct5fPhq1pWIkngXXtRb+BHm8k="; + }; + + build-system = [ + setuptools + llm + ]; + + dependencies = [ pymupdf ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "llm_pdf_to_images" ]; + + passthru.tests = llm.mkPluginTest llm-pdf-to-images; + + meta = { + description = "LLM fragment plugin to load a PDF as a sequence of images"; + homepage = "https://github.com/simonw/llm-pdf-to-images"; + changelog = "https://github.com/simonw/llm-pdf-to-images/releases/tag/${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 2be447500aac..f237f3fbbecc 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -84,6 +84,7 @@ let llm-ollama ? false, llm-openai-plugin ? false, llm-openrouter ? false, + llm-pdf-to-images ? false, llm-sentence-transformers ? false, llm-templates-fabric ? false, llm-templates-github ? false, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5e7d1c43ff59..086a295a8ed1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8342,6 +8342,8 @@ self: super: with self; { llm-openrouter = callPackage ../development/python-modules/llm-openrouter { }; + llm-pdf-to-images = callPackage ../development/python-modules/llm-pdf-to-images { }; + llm-sentence-transformers = callPackage ../development/python-modules/llm-sentence-transformers { }; llm-templates-fabric = callPackage ../development/python-modules/llm-templates-fabric { }; From 42fa505cf79a73532642eb2bda4b009e7bac87ee Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 30 May 2025 17:13:35 -0700 Subject: [PATCH 059/146] python3Packages.llm-*: use llm in the dependencies There's no circular dependency problems anymore. --- .../python-modules/llm-anthropic/default.nix | 6 ++++-- pkgs/development/python-modules/llm-cmd/default.nix | 13 +++++++------ .../python-modules/llm-command-r/default.nix | 8 ++++---- .../python-modules/llm-deepseek/default.nix | 7 ++----- .../development/python-modules/llm-docs/default.nix | 7 +++---- .../development/python-modules/llm-echo/default.nix | 7 +++---- .../python-modules/llm-fragments-github/default.nix | 8 +++----- .../python-modules/llm-fragments-pypi/default.nix | 7 ++++--- .../python-modules/llm-fragments-reader/default.nix | 7 +++---- .../python-modules/llm-fragments-symbex/default.nix | 10 +++++----- .../python-modules/llm-gemini/default.nix | 6 ++---- .../development/python-modules/llm-gguf/default.nix | 6 ++---- pkgs/development/python-modules/llm-git/default.nix | 2 +- .../development/python-modules/llm-grok/default.nix | 6 ++---- .../development/python-modules/llm-groq/default.nix | 6 ++++-- .../python-modules/llm-hacker-news/default.nix | 8 +++----- pkgs/development/python-modules/llm-jq/default.nix | 7 ++----- .../python-modules/llm-llama-server/default.nix | 9 +++------ .../python-modules/llm-mistral/default.nix | 2 +- .../python-modules/llm-ollama/default.nix | 7 ++----- .../python-modules/llm-openai-plugin/default.nix | 6 ++---- .../python-modules/llm-openrouter/default.nix | 2 +- .../python-modules/llm-pdf-to-images/default.nix | 10 +++++----- .../llm-sentence-transformers/default.nix | 6 ++---- .../python-modules/llm-templates-fabric/default.nix | 7 ++----- .../python-modules/llm-templates-github/default.nix | 7 ++----- .../python-modules/llm-tools-datasette/default.nix | 7 +++---- .../python-modules/llm-tools-quickjs/default.nix | 10 +++++----- .../python-modules/llm-tools-simpleeval/default.nix | 10 +++++----- .../python-modules/llm-tools-sqlite/default.nix | 7 +++---- .../python-modules/llm-venice/default.nix | 7 ++----- .../python-modules/llm-video-frames/default.nix | 7 ++----- pkgs/development/python-modules/symbex/default.nix | 6 +++--- 33 files changed, 97 insertions(+), 134 deletions(-) diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index f78daf8b73ed..41bc86f10a15 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -26,10 +26,12 @@ buildPythonPackage rec { build-system = [ setuptools - llm ]; - dependencies = [ anthropic ]; + dependencies = [ + anthropic + llm + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/llm-cmd/default.nix b/pkgs/development/python-modules/llm-cmd/default.nix index e883cb87ecbc..30b1cd22250c 100644 --- a/pkgs/development/python-modules/llm-cmd/default.nix +++ b/pkgs/development/python-modules/llm-cmd/default.nix @@ -27,13 +27,11 @@ buildPythonPackage rec { # Only needed until https://github.com/simonw/llm-cmd/pull/18 is merged and released patches = [ ./fix-test.patch ]; - build-system = [ - setuptools - # Follows the reasoning from https://github.com/NixOS/nixpkgs/pull/327800#discussion_r1681586659 about including llm in build-system - llm - ]; + + build-system = [ setuptools ]; dependencies = [ + llm prompt-toolkit pygments ]; @@ -53,6 +51,9 @@ buildPythonPackage rec { homepage = "https://github.com/simonw/llm-cmd"; changelog = "https://github.com/simonw/llm-cmd/releases/tag/${version}"; license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ erethon ]; + maintainers = with lib.maintainers; [ + erethon + philiptaron + ]; }; } diff --git a/pkgs/development/python-modules/llm-command-r/default.nix b/pkgs/development/python-modules/llm-command-r/default.nix index af96a7e8d057..386973b2df4a 100644 --- a/pkgs/development/python-modules/llm-command-r/default.nix +++ b/pkgs/development/python-modules/llm-command-r/default.nix @@ -23,13 +23,13 @@ buildPythonPackage rec { hash = "sha256-PxICRds9NJQP64HwoL7Oxd39yaIrMdAyQEbhaumJCgo="; }; - build-system = [ - setuptools + build-system = [ setuptools ]; + + dependencies = [ + cohere llm ]; - dependencies = [ cohere ]; - nativeCheckInputs = [ pytestCheckHook pytest-recording diff --git a/pkgs/development/python-modules/llm-deepseek/default.nix b/pkgs/development/python-modules/llm-deepseek/default.nix index 8ff63bd96064..c0cb3668dc7f 100644 --- a/pkgs/development/python-modules/llm-deepseek/default.nix +++ b/pkgs/development/python-modules/llm-deepseek/default.nix @@ -19,12 +19,9 @@ buildPythonPackage rec { hash = "sha256-yrNvIGnU9Q/0H786DsM0wGEwfxZYIk8IXhqC4mWaQAA="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; pythonImportsCheck = [ "llm_deepseek" ]; diff --git a/pkgs/development/python-modules/llm-docs/default.nix b/pkgs/development/python-modules/llm-docs/default.nix index 8ed974571607..c1d07f8b1c49 100644 --- a/pkgs/development/python-modules/llm-docs/default.nix +++ b/pkgs/development/python-modules/llm-docs/default.nix @@ -19,10 +19,9 @@ buildPythonPackage rec { hash = "sha256-+Ha6L2h8p/yA073MfO2Uvd6E4bKA2xAvaBWtvjqglOw="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; pythonImportsCheck = [ "llm_docs" ]; diff --git a/pkgs/development/python-modules/llm-echo/default.nix b/pkgs/development/python-modules/llm-echo/default.nix index 756c4a743b46..588b6f64909d 100644 --- a/pkgs/development/python-modules/llm-echo/default.nix +++ b/pkgs/development/python-modules/llm-echo/default.nix @@ -21,10 +21,9 @@ buildPythonPackage rec { hash = "sha256-4345UIyaQx+mYYBAFD5AaX5YbjbnJQt8bKMD5Vl8VJc="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/llm-fragments-github/default.nix b/pkgs/development/python-modules/llm-fragments-github/default.nix index 9b8c3d3c5a72..cf4874805c79 100644 --- a/pkgs/development/python-modules/llm-fragments-github/default.nix +++ b/pkgs/development/python-modules/llm-fragments-github/default.nix @@ -19,11 +19,9 @@ buildPythonPackage rec { hash = "sha256-7i1WRix5AAEG5EXJqtaU+QY56aL0SePdqz84z+C+iYM="; }; - build-system = [ - setuptools - llm - ]; - dependencies = [ ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; pythonImportsCheck = [ "llm_fragments_github" ]; diff --git a/pkgs/development/python-modules/llm-fragments-pypi/default.nix b/pkgs/development/python-modules/llm-fragments-pypi/default.nix index d30135b5378d..c07f2cbc4f01 100644 --- a/pkgs/development/python-modules/llm-fragments-pypi/default.nix +++ b/pkgs/development/python-modules/llm-fragments-pypi/default.nix @@ -20,11 +20,12 @@ buildPythonPackage rec { hash = "sha256-1XqAmuZ1WMHD6JbLbLsK9K4Uf3FvvKJD4mn1G2J/3C8="; }; - build-system = [ - hatchling + build-system = [ hatchling ]; + + dependencies = [ + httpx llm ]; - dependencies = [ httpx ]; pythonImportsCheck = [ "llm_fragments_pypi" ]; diff --git a/pkgs/development/python-modules/llm-fragments-reader/default.nix b/pkgs/development/python-modules/llm-fragments-reader/default.nix index 72aa5aaea539..b3b5aa4ad9ce 100644 --- a/pkgs/development/python-modules/llm-fragments-reader/default.nix +++ b/pkgs/development/python-modules/llm-fragments-reader/default.nix @@ -25,10 +25,9 @@ buildPythonPackage rec { hash = "sha256-2xdvOpMGsTtnerrlGiVSHoJrM+GQ7Zgv+zn2SAwYAL4="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/llm-fragments-symbex/default.nix b/pkgs/development/python-modules/llm-fragments-symbex/default.nix index 2c1611ab2e27..c476c6a9ec6e 100644 --- a/pkgs/development/python-modules/llm-fragments-symbex/default.nix +++ b/pkgs/development/python-modules/llm-fragments-symbex/default.nix @@ -22,12 +22,12 @@ buildPythonPackage rec { hash = "sha256-LECMHv4tGMCY60JU68y2Sfxp97Px7T/RJVhYVDSFCy4="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ symbex ]; + dependencies = [ + llm + symbex + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/llm-gemini/default.nix b/pkgs/development/python-modules/llm-gemini/default.nix index 4b746366fbdb..ab0976f2a97b 100644 --- a/pkgs/development/python-modules/llm-gemini/default.nix +++ b/pkgs/development/python-modules/llm-gemini/default.nix @@ -25,14 +25,12 @@ buildPythonPackage rec { hash = "sha256-aCP0YjcghzpgceuZRKGTN15wm7OIPCwcJAJJBxh78f4="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; dependencies = [ httpx ijson + llm ]; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/llm-gguf/default.nix b/pkgs/development/python-modules/llm-gguf/default.nix index 6d72228e943a..1a399f3861e6 100644 --- a/pkgs/development/python-modules/llm-gguf/default.nix +++ b/pkgs/development/python-modules/llm-gguf/default.nix @@ -25,13 +25,11 @@ buildPythonPackage rec { hash = "sha256-ihMOiQnTfgZKICVDoQHLOMahrd+GiB+HwWFBMyIcs0A="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; dependencies = [ httpx + llm llama-cpp-python ]; diff --git a/pkgs/development/python-modules/llm-git/default.nix b/pkgs/development/python-modules/llm-git/default.nix index 39c66027c601..957a54581de6 100644 --- a/pkgs/development/python-modules/llm-git/default.nix +++ b/pkgs/development/python-modules/llm-git/default.nix @@ -31,12 +31,12 @@ buildPythonPackage rec { build-system = [ setuptools - llm ]; dependencies = [ click deepmerge + llm pyyaml rich pygments diff --git a/pkgs/development/python-modules/llm-grok/default.nix b/pkgs/development/python-modules/llm-grok/default.nix index 6c8baca68f7f..a2c5ac03adc3 100644 --- a/pkgs/development/python-modules/llm-grok/default.nix +++ b/pkgs/development/python-modules/llm-grok/default.nix @@ -25,12 +25,10 @@ buildPythonPackage rec { hash = "sha256-OeeU/53XKucLCtGvnl5RWc/QqF0TprB/SO8pnnK5fdw="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; dependencies = [ + llm httpx httpx-sse rich diff --git a/pkgs/development/python-modules/llm-groq/default.nix b/pkgs/development/python-modules/llm-groq/default.nix index 8f2a04aa4f72..55364db0921b 100644 --- a/pkgs/development/python-modules/llm-groq/default.nix +++ b/pkgs/development/python-modules/llm-groq/default.nix @@ -22,10 +22,12 @@ buildPythonPackage rec { build-system = [ setuptools - llm ]; - dependencies = [ groq ]; + dependencies = [ + groq + llm + ]; pythonImportsCheck = [ "llm_groq" ]; diff --git a/pkgs/development/python-modules/llm-hacker-news/default.nix b/pkgs/development/python-modules/llm-hacker-news/default.nix index 3029de613c74..6c481e0212b6 100644 --- a/pkgs/development/python-modules/llm-hacker-news/default.nix +++ b/pkgs/development/python-modules/llm-hacker-news/default.nix @@ -19,11 +19,9 @@ buildPythonPackage rec { hash = "sha256-pywx9TAN/mnGR6Vv6YsPhLO4R5Geagw/bcydQjvTH5s="; }; - build-system = [ - setuptools - llm - ]; - dependencies = [ ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; pythonImportsCheck = [ "llm_hacker_news" ]; diff --git a/pkgs/development/python-modules/llm-jq/default.nix b/pkgs/development/python-modules/llm-jq/default.nix index 64c3149e8b96..f88e6ae566f4 100644 --- a/pkgs/development/python-modules/llm-jq/default.nix +++ b/pkgs/development/python-modules/llm-jq/default.nix @@ -18,12 +18,9 @@ buildPythonPackage rec { hash = "sha256-Mf/tbB9+UdmSRpulqv5Wagr8wjDcRrNs2741DNQZhO4="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; pythonImportsCheck = [ "llm_jq" ]; diff --git a/pkgs/development/python-modules/llm-llama-server/default.nix b/pkgs/development/python-modules/llm-llama-server/default.nix index e6fcb5b3498c..cb0887020d41 100644 --- a/pkgs/development/python-modules/llm-llama-server/default.nix +++ b/pkgs/development/python-modules/llm-llama-server/default.nix @@ -21,12 +21,9 @@ buildPythonPackage rec { hash = "sha256-jtFSfGu3JhNUfTsspY+OFLTMt9jQrh6R05sK9KBOKTE="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; nativeCheckInputs = [ pytestCheckHook @@ -39,7 +36,7 @@ buildPythonPackage rec { meta = { description = "LLM plugin providing access to Mistral models using the Mistral API"; - homepage = "Interact with llama-server models"; + homepage = "https://github.com/simonw/llm-llama-server"; changelog = "https://github.com/simonw/llm-llama-server/releases/tag/${version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ philiptaron ]; diff --git a/pkgs/development/python-modules/llm-mistral/default.nix b/pkgs/development/python-modules/llm-mistral/default.nix index 1aa42abacc6e..773868d5a875 100644 --- a/pkgs/development/python-modules/llm-mistral/default.nix +++ b/pkgs/development/python-modules/llm-mistral/default.nix @@ -27,12 +27,12 @@ buildPythonPackage rec { build-system = [ setuptools - llm ]; dependencies = [ httpx httpx-sse + llm ]; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/llm-ollama/default.nix b/pkgs/development/python-modules/llm-ollama/default.nix index fa7de12f294c..0df527ee0241 100644 --- a/pkgs/development/python-modules/llm-ollama/default.nix +++ b/pkgs/development/python-modules/llm-ollama/default.nix @@ -32,14 +32,11 @@ buildPythonPackage rec { hash = "sha256-iwrDqrPt/zwXypBwD7zDAcen4fQq6PXl7Xj5VUL2KWA="; }; - build-system = [ - setuptools - # Follows the reasoning from https://github.com/NixOS/nixpkgs/pull/327800#discussion_r1681586659 about including llm in build-system - llm - ]; + build-system = [ setuptools ]; dependencies = [ click + llm ollama pydantic ]; diff --git a/pkgs/development/python-modules/llm-openai-plugin/default.nix b/pkgs/development/python-modules/llm-openai-plugin/default.nix index 7543a341f3c1..49fd64c6acd2 100644 --- a/pkgs/development/python-modules/llm-openai-plugin/default.nix +++ b/pkgs/development/python-modules/llm-openai-plugin/default.nix @@ -25,12 +25,10 @@ buildPythonPackage rec { hash = "sha256-UoUxCwR+qOUufHuS0gw6A5Q7sB77VO4HYuMjFGN7mhA="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; dependencies = [ + llm openai ]; diff --git a/pkgs/development/python-modules/llm-openrouter/default.nix b/pkgs/development/python-modules/llm-openrouter/default.nix index 9c576d88e536..ada713681c69 100644 --- a/pkgs/development/python-modules/llm-openrouter/default.nix +++ b/pkgs/development/python-modules/llm-openrouter/default.nix @@ -27,11 +27,11 @@ buildPythonPackage rec { build-system = [ setuptools - llm ]; dependencies = [ httpx + llm openai ]; diff --git a/pkgs/development/python-modules/llm-pdf-to-images/default.nix b/pkgs/development/python-modules/llm-pdf-to-images/default.nix index bdf5d4ae785f..fd39db4914dd 100644 --- a/pkgs/development/python-modules/llm-pdf-to-images/default.nix +++ b/pkgs/development/python-modules/llm-pdf-to-images/default.nix @@ -23,12 +23,12 @@ buildPythonPackage rec { hash = "sha256-UWtCPdKrGE93NNjCroct5fPhq1pWIkngXXtRb+BHm8k="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ pymupdf ]; + dependencies = [ + llm + pymupdf + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/llm-sentence-transformers/default.nix b/pkgs/development/python-modules/llm-sentence-transformers/default.nix index a9a702d0fa07..db7439998e87 100644 --- a/pkgs/development/python-modules/llm-sentence-transformers/default.nix +++ b/pkgs/development/python-modules/llm-sentence-transformers/default.nix @@ -23,13 +23,11 @@ buildPythonPackage rec { hash = "sha256-FDDMItKFEYEptiL3EHKgKVxClqRU9RaM3uD3xP0F4OM="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; dependencies = [ einops + llm sentence-transformers ]; diff --git a/pkgs/development/python-modules/llm-templates-fabric/default.nix b/pkgs/development/python-modules/llm-templates-fabric/default.nix index 979f9f8bae0f..c966d21915ea 100644 --- a/pkgs/development/python-modules/llm-templates-fabric/default.nix +++ b/pkgs/development/python-modules/llm-templates-fabric/default.nix @@ -19,12 +19,9 @@ buildPythonPackage rec { hash = "sha256-tfkSjeT9WstUsNCtVr3fMzqELFCtfYphqf3xFGvHaV0="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; pythonImportsCheck = [ "llm_templates_fabric" ]; diff --git a/pkgs/development/python-modules/llm-templates-github/default.nix b/pkgs/development/python-modules/llm-templates-github/default.nix index 58a78512959d..ccf0d937f05d 100644 --- a/pkgs/development/python-modules/llm-templates-github/default.nix +++ b/pkgs/development/python-modules/llm-templates-github/default.nix @@ -19,12 +19,9 @@ buildPythonPackage rec { hash = "sha256-SFXrvpKrvfIP0JmXQt6OZ52kne4AEtiggbshyac9XQc="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; pythonImportsCheck = [ "llm_templates_github" ]; diff --git a/pkgs/development/python-modules/llm-tools-datasette/default.nix b/pkgs/development/python-modules/llm-tools-datasette/default.nix index 5229c71bb6ea..4320fa797a1e 100644 --- a/pkgs/development/python-modules/llm-tools-datasette/default.nix +++ b/pkgs/development/python-modules/llm-tools-datasette/default.nix @@ -23,10 +23,9 @@ buildPythonPackage rec { hash = "sha256-Us9bPk2qpTlgJqQ0Cl9QdeqW+h8j+pmnkriM0WXEyyA="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; nativeCheckInputs = [ llm-echo diff --git a/pkgs/development/python-modules/llm-tools-quickjs/default.nix b/pkgs/development/python-modules/llm-tools-quickjs/default.nix index b8f934c5a5b6..ad447a01ade1 100644 --- a/pkgs/development/python-modules/llm-tools-quickjs/default.nix +++ b/pkgs/development/python-modules/llm-tools-quickjs/default.nix @@ -23,12 +23,12 @@ buildPythonPackage rec { hash = "sha256-Si3VcHnRUj8Q/N8pRhltPOM6K64TX9DBH/u4WQxQJjQ="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ quickjs ]; + dependencies = [ + llm + quickjs + ]; nativeCheckInputs = [ llm-echo diff --git a/pkgs/development/python-modules/llm-tools-simpleeval/default.nix b/pkgs/development/python-modules/llm-tools-simpleeval/default.nix index 50a9a3f9ba24..06b5a31f8ea5 100644 --- a/pkgs/development/python-modules/llm-tools-simpleeval/default.nix +++ b/pkgs/development/python-modules/llm-tools-simpleeval/default.nix @@ -23,12 +23,12 @@ buildPythonPackage rec { hash = "sha256-IOmYu7zoim7Co/xIm5VLaGkCPI0o+2Nb2Pu3U2fH0BU="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ simpleeval ]; + dependencies = [ + llm + simpleeval + ]; nativeCheckInputs = [ llm-echo diff --git a/pkgs/development/python-modules/llm-tools-sqlite/default.nix b/pkgs/development/python-modules/llm-tools-sqlite/default.nix index 283084b8efc0..494c4c5994e5 100644 --- a/pkgs/development/python-modules/llm-tools-sqlite/default.nix +++ b/pkgs/development/python-modules/llm-tools-sqlite/default.nix @@ -22,10 +22,9 @@ buildPythonPackage rec { hash = "sha256-VAmK4cXzZWTWCU92TwMdhNJPvYPZ88t5BZe8vo60SZY="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; + + dependencies = [ llm ]; nativeCheckInputs = [ llm-echo diff --git a/pkgs/development/python-modules/llm-venice/default.nix b/pkgs/development/python-modules/llm-venice/default.nix index 8885b55595ee..df24b6a20967 100644 --- a/pkgs/development/python-modules/llm-venice/default.nix +++ b/pkgs/development/python-modules/llm-venice/default.nix @@ -19,12 +19,9 @@ buildPythonPackage rec { hash = "sha256-vsb3oXGr+2FDJnTwYomICfald1ptben28hAJ8ypKiBI="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; # Reaches out to the real API doCheck = false; diff --git a/pkgs/development/python-modules/llm-video-frames/default.nix b/pkgs/development/python-modules/llm-video-frames/default.nix index b519b37bcb24..1591ead64395 100644 --- a/pkgs/development/python-modules/llm-video-frames/default.nix +++ b/pkgs/development/python-modules/llm-video-frames/default.nix @@ -19,12 +19,9 @@ buildPythonPackage rec { hash = "sha256-brTyBymoFuvSQzsD/4aWzFGCrh3yEmWbpsUNGKT9dcU="; }; - build-system = [ - setuptools - llm - ]; + build-system = [ setuptools ]; - dependencies = [ ]; + dependencies = [ llm ]; pythonImportsCheck = [ "llm_video_frames" ]; diff --git a/pkgs/development/python-modules/symbex/default.nix b/pkgs/development/python-modules/symbex/default.nix index 7790641ab4fc..47405f4b8223 100644 --- a/pkgs/development/python-modules/symbex/default.nix +++ b/pkgs/development/python-modules/symbex/default.nix @@ -36,9 +36,9 @@ buildPythonPackage rec { ]; meta = { - description = "Ask questions of LLM documentation using LLM"; - homepage = "https://github.com/simonw/llm-docs"; - changelog = "https://github.com/simonw/llm-docs/releases/tag/${version}/CHANGELOG.md"; + description = "Find the Python code for specified symbols"; + homepage = "https://github.com/simonw/symbex"; + changelog = "https://github.com/simonw/symbex/releases/tag/${version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ philiptaron ]; }; From 837cff79ca793c40db34781fcbd27c81949dbf8c Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 30 May 2025 17:24:34 -0700 Subject: [PATCH 060/146] llm: include the tests for all plugins as part of passthru.tests --- pkgs/development/python-modules/llm/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index f237f3fbbecc..70d606ec556b 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -231,6 +231,9 @@ let mkPluginTest = plugin: { ${plugin.pname} = callPackage ./mk-plugin-test.nix { inherit llm plugin; }; }; + + # include tests for all the plugins + tests = lib.mergeAttrsList (map (name: python.pkgs.${name}.tests) withPluginsArgNames); }; meta = { From 19c0c5cb3218c4d35e7ae0fdc10a15f7986ff961 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 1 Jun 2025 12:55:49 +0000 Subject: [PATCH 061/146] roundcube: 1.6.10 -> 1.6.11 --- pkgs/servers/roundcube/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/roundcube/default.nix b/pkgs/servers/roundcube/default.nix index b88ba3a60819..b10167d270bb 100644 --- a/pkgs/servers/roundcube/default.nix +++ b/pkgs/servers/roundcube/default.nix @@ -10,11 +10,11 @@ stdenv.mkDerivation rec { pname = "roundcube"; - version = "1.6.10"; + version = "1.6.11"; src = fetchurl { url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz"; - sha256 = "sha256-A8+sL0lN2Zwlw177CtTTM/JI4y8l9CBPvI8nMb+68OQ="; + sha256 = "sha256-ojDkMgZVVb+ie+o/z0rGcvI1nvKK2E9ZReo8z3AudGY="; }; patches = [ ./0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch ]; From 788e16a8e9edee9613b3ccdda02018c854452e8d Mon Sep 17 00:00:00 2001 From: William Brockhus Date: Mon, 2 Jun 2025 12:05:54 +1000 Subject: [PATCH 062/146] bitwarden: 2025.4.2 -> 2025.5.0 --- .../bi/bitwarden-desktop/dont-use-platform-triple.patch | 4 ++-- pkgs/by-name/bi/bitwarden-desktop/package.nix | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/bi/bitwarden-desktop/dont-use-platform-triple.patch b/pkgs/by-name/bi/bitwarden-desktop/dont-use-platform-triple.patch index 0b39a187e39d..f2f9259ebc00 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/dont-use-platform-triple.patch +++ b/pkgs/by-name/bi/bitwarden-desktop/dont-use-platform-triple.patch @@ -45,10 +45,10 @@ index 2922035..6497a38 100644 ], "electronVersion": "34.0.0", "generateUpdatesFilesForAllChannels": true, -@@ -67,7 +67,6 @@ - ], +@@ -68,7 +68,6 @@ "CFBundleDevelopmentRegion": "en" }, + "provisioningProfile": "bitwarden_desktop_developer_id.provisionprofile", - "singleArchFiles": "node_modules/@bitwarden/desktop-napi/desktop_napi.darwin-*.node", "extraFiles": [ { diff --git a/pkgs/by-name/bi/bitwarden-desktop/package.nix b/pkgs/by-name/bi/bitwarden-desktop/package.nix index 70f8ada470e0..b2f9ab146577 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/package.nix +++ b/pkgs/by-name/bi/bitwarden-desktop/package.nix @@ -34,13 +34,13 @@ let in buildNpmPackage' rec { pname = "bitwarden-desktop"; - version = "2025.4.2"; + version = "2025.5.0"; src = fetchFromGitHub { owner = "bitwarden"; repo = "clients"; rev = "desktop-v${version}"; - hash = "sha256-sWphSdxh07GS7GPlNVxK7zoXMTGLjT7qTLfH1nsIiQQ="; + hash = "sha256-8jVKwqKhTfhur226SER4sb1i4dY+TjJRYmOY8YtO6CY="; }; patches = [ @@ -76,7 +76,7 @@ buildNpmPackage' rec { "--ignore-scripts" ]; npmWorkspace = "apps/desktop"; - npmDepsHash = "sha256-/BOzDt+wgnWedWfShPkAhaeujBBQTDlZdtiKl3wrOqE="; + npmDepsHash = "sha256-0IoBPRGdtkMeTrT5cqZLHB/WrUCONtsJ6YHh0y4K5Ls="; cargoDeps = rustPlatform.fetchCargoVendor { inherit @@ -86,7 +86,7 @@ buildNpmPackage' rec { cargoRoot patches ; - hash = "sha256-EONHK33RuVy2ZlUzwdvdBX+6/jiCsrNo9ueZYQtWSkA="; + hash = "sha256-ZD/UPYRa+HR7hyWDP6S/BKvQpYRDwWQJV6iGF9LT2uY="; }; cargoRoot = "apps/desktop/desktop_native"; From 01431ac92d9f767561cfabc50042d5e9be3a3932 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Jun 2025 20:03:19 +0000 Subject: [PATCH 063/146] mpvScripts.uosc: 5.9.2 -> 5.10.0 --- pkgs/applications/video/mpv/scripts/uosc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/mpv/scripts/uosc.nix b/pkgs/applications/video/mpv/scripts/uosc.nix index 17ad8b687976..8437d02a85ed 100644 --- a/pkgs/applications/video/mpv/scripts/uosc.nix +++ b/pkgs/applications/video/mpv/scripts/uosc.nix @@ -9,14 +9,14 @@ buildLua (finalAttrs: { pname = "uosc"; - version = "5.9.2"; + version = "5.10.0"; scriptPath = "src/uosc"; src = fetchFromGitHub { owner = "tomasklaen"; repo = "uosc"; rev = finalAttrs.version; - hash = "sha256-tBSMLzwiKAXdbvyI80ihl0x/ZcDrNd4e7r1g7+CrLgQ="; + hash = "sha256-Jj88PkP7hpyUOHsz0w0TOTTdJoQ/ShgJfHg//GUuUvM="; }; passthru.updateScript = gitUpdater { }; From 871263f41e0c3c53cc314255fa836fcfdbd3a6be Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Jun 2025 20:35:56 +0000 Subject: [PATCH 064/146] python3Packages.google-cloud-dlp: 3.29.0 -> 3.30.0 --- pkgs/development/python-modules/google-cloud-dlp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-dlp/default.nix b/pkgs/development/python-modules/google-cloud-dlp/default.nix index 87e39d057cb1..56e170020fb0 100644 --- a/pkgs/development/python-modules/google-cloud-dlp/default.nix +++ b/pkgs/development/python-modules/google-cloud-dlp/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "google-cloud-dlp"; - version = "3.29.0"; + version = "3.30.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "google_cloud_dlp"; inherit version; - hash = "sha256-FbNmneFjhZmqq17EMeNsiOSCq98+JODhAJDEzHabLiA="; + hash = "sha256-qTCw9C4ULzapSjGptsr5uFL4ThUpROTxsx2ICZCx6H0="; }; build-system = [ setuptools ]; From 3eaa9f140e97769672494c77ed0c8f1380989daf Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Jun 2025 20:48:31 +0000 Subject: [PATCH 065/146] maa-assistant-arknights: 5.16.9 -> 5.16.10 --- pkgs/by-name/ma/maa-assistant-arknights/pin.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/maa-assistant-arknights/pin.json b/pkgs/by-name/ma/maa-assistant-arknights/pin.json index ec43cd01494a..7904f82f9503 100644 --- a/pkgs/by-name/ma/maa-assistant-arknights/pin.json +++ b/pkgs/by-name/ma/maa-assistant-arknights/pin.json @@ -1,10 +1,10 @@ { "stable": { - "version": "5.16.9", - "hash": "sha256-D6ea+fDffOxAPf9+dCOjbr9+meXdOEUN+1BAicO2xhc=" + "version": "5.16.10", + "hash": "sha256-H3RW2SikKCYhmDsoID5Kye9qq6lAbuu8tedzCHuybis=" }, "beta": { - "version": "5.16.9", - "hash": "sha256-D6ea+fDffOxAPf9+dCOjbr9+meXdOEUN+1BAicO2xhc=" + "version": "5.17.0-beta.1", + "hash": "sha256-qBfy7M5jqf4aPT5kcdzLm6HFZKn8KfYeZVaZvfY9rAg=" } } From 273c68f65fa1f1af38075f73a2a10cdbe101c693 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Jun 2025 21:35:51 +0000 Subject: [PATCH 066/146] terraform-providers.pagerduty: 3.25.2 -> 3.26.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 0f38468968ec..99b8b4cc536c 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1012,11 +1012,11 @@ "vendorHash": null }, "pagerduty": { - "hash": "sha256-CvW7u0VD6qOHYUVJIin38qrkVLtNfNeK4QlLOICFu1E=", + "hash": "sha256-nCd2EQgLR1PNPBnWPSpRGxd3zwQ7dJy8fb3tWgGnbRc=", "homepage": "https://registry.terraform.io/providers/PagerDuty/pagerduty", "owner": "PagerDuty", "repo": "terraform-provider-pagerduty", - "rev": "v3.25.2", + "rev": "v3.26.0", "spdx": "MPL-2.0", "vendorHash": null }, From 327a41474e77dd3fae42ade337d637c6b90d641c Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 2 Jun 2025 18:40:20 -0400 Subject: [PATCH 067/146] dbip-asn-lite: 2025-05 -> 2025-06 --- pkgs/by-name/db/dbip-asn-lite/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/db/dbip-asn-lite/package.nix b/pkgs/by-name/db/dbip-asn-lite/package.nix index 8be3a8f3a1b3..898d67764e52 100644 --- a/pkgs/by-name/db/dbip-asn-lite/package.nix +++ b/pkgs/by-name/db/dbip-asn-lite/package.nix @@ -5,11 +5,11 @@ }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "dbip-asn-lite"; - version = "2025-05"; + version = "2025-06"; src = fetchurl { url = "https://download.db-ip.com/free/dbip-asn-lite-${finalAttrs.version}.mmdb.gz"; - hash = "sha256-7o/mGSi66++h9mOPhsv/M/taDHJ7kPfKPh7jb+nC4IQ="; + hash = "sha256-ZlbspbZoeUrftP5xaPqY16BBZrPu1tU2AjbmJOOzN0w="; }; dontUnpack = true; From 4f48214aa44ec1ae11f538407f78e3a3c319c9c8 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 2 Jun 2025 18:40:27 -0400 Subject: [PATCH 068/146] dbip-city-lite: 2025-05 -> 2025-06 --- pkgs/by-name/db/dbip-city-lite/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/db/dbip-city-lite/package.nix b/pkgs/by-name/db/dbip-city-lite/package.nix index 7d986448796b..fc49f52d647b 100644 --- a/pkgs/by-name/db/dbip-city-lite/package.nix +++ b/pkgs/by-name/db/dbip-city-lite/package.nix @@ -5,11 +5,11 @@ }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "dbip-city-lite"; - version = "2025-05"; + version = "2025-06"; src = fetchurl { url = "https://download.db-ip.com/free/dbip-city-lite-${finalAttrs.version}.mmdb.gz"; - hash = "sha256-Trqy6BlagHycC432BE1p/fF+hfcVpPhzVJTKIJQaWlY="; + hash = "sha256-iv4UfdLcmLE5d5y38kz4EFpDpecjScESr1I30dB+jDQ="; }; dontUnpack = true; From 91e34cce0049217bc358fd46a11151c3396bccad Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 2 Jun 2025 18:40:35 -0400 Subject: [PATCH 069/146] dbip-country-lite: 2025-05 -> 2025-06 --- pkgs/by-name/db/dbip-country-lite/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/db/dbip-country-lite/package.nix b/pkgs/by-name/db/dbip-country-lite/package.nix index 23fb563eaffa..b6383b60b55f 100644 --- a/pkgs/by-name/db/dbip-country-lite/package.nix +++ b/pkgs/by-name/db/dbip-country-lite/package.nix @@ -5,11 +5,11 @@ }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "dbip-country-lite"; - version = "2025-05"; + version = "2025-06"; src = fetchurl { url = "https://download.db-ip.com/free/dbip-country-lite-${finalAttrs.version}.mmdb.gz"; - hash = "sha256-7ZmodKYVMID/5yOMZuEpRkb41/DTrgprJPG7DYnYNak="; + hash = "sha256-p3HJTzzAtkHgDdiXa9M1jPSukDo+AgRu3Cjf1Q+QXB8="; }; dontUnpack = true; From e51837dde43a29c7a42ea2bd0d3eb11a93d1bb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Jun 2025 15:48:50 -0700 Subject: [PATCH 070/146] flare-signal: 0.16.1 -> 0.16.2 Diff: https://gitlab.com/schmiddi-on-mobile/flare/-/compare/refs/tags/0.16.1...0.16.2 Changelog: https://gitlab.com/schmiddi-on-mobile/flare/-/blob/0.16.2/CHANGELOG.md --- pkgs/by-name/fl/flare-signal/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fl/flare-signal/package.nix b/pkgs/by-name/fl/flare-signal/package.nix index 7ad1ac892efe..cd15e153b8a9 100644 --- a/pkgs/by-name/fl/flare-signal/package.nix +++ b/pkgs/by-name/fl/flare-signal/package.nix @@ -22,19 +22,19 @@ stdenv.mkDerivation (finalAttrs: { pname = "flare"; - version = "0.16.1"; + version = "0.16.2"; src = fetchFromGitLab { domain = "gitlab.com"; owner = "schmiddi-on-mobile"; repo = "flare"; tag = finalAttrs.version; - hash = "sha256-5phXBsXi0kbTb4RVzbB4LS9b+S2M3U2l/6QYoSHo114="; + hash = "sha256-H7lh3yjAC4xSv5NsLo3q4bEzuLgEh/UExwCw3BJWUeQ="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-sI+zV1YW9RhtYRgUWiFKN8Iw9a5qkktOo0hFwyimPI8="; + hash = "sha256-x1Yyr6Mwd1fYylrhRflpnzkBKG6Zm8R5UO/jcqP+aKE="; }; nativeBuildInputs = [ From ba96c499e48696f4818e5e7830d7284e8bfdaf77 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 2 Jun 2025 19:36:38 -0400 Subject: [PATCH 071/146] v2ray-domain-list-community: 20250526033544 -> 20250602083629 Diff: https://github.com/v2fly/domain-list-community/compare/20250526033544...20250602083629 --- pkgs/by-name/v2/v2ray-domain-list-community/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/v2/v2ray-domain-list-community/package.nix b/pkgs/by-name/v2/v2ray-domain-list-community/package.nix index d512752b7f97..2b1544c24ac4 100644 --- a/pkgs/by-name/v2/v2ray-domain-list-community/package.nix +++ b/pkgs/by-name/v2/v2ray-domain-list-community/package.nix @@ -9,12 +9,12 @@ let generator = pkgsBuildBuild.buildGoModule rec { pname = "v2ray-domain-list-community"; - version = "20250526033544"; + version = "20250602083629"; src = fetchFromGitHub { owner = "v2fly"; repo = "domain-list-community"; rev = version; - hash = "sha256-XA6kB8mwnwZwioviIlKbYr40pJ1ndOXecjMToE9mAYE="; + hash = "sha256-LdB4BUHDpPoA0c8yoZX9gZhaY97t4DfkR37y32yHlvk="; }; vendorHash = "sha256-NLh14rXRci4hgDkBJVJDIDvobndB7KYRKAX7UjyqSsg="; meta = with lib; { From c54b50ee831b07a9d835299974884f1e56ad7b20 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 00:00:16 +0000 Subject: [PATCH 072/146] omnictl: 0.50.0 -> 0.50.1 --- pkgs/by-name/om/omnictl/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/om/omnictl/package.nix b/pkgs/by-name/om/omnictl/package.nix index dba1f3c45bc4..d8d6067aa108 100644 --- a/pkgs/by-name/om/omnictl/package.nix +++ b/pkgs/by-name/om/omnictl/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "omnictl"; - version = "0.50.0"; + version = "0.50.1"; src = fetchFromGitHub { owner = "siderolabs"; repo = "omni"; rev = "v${version}"; - hash = "sha256-zxtBAFfZrXbUL1V2AN8Cblm6M7HhogoncOzGyjOUcK4="; + hash = "sha256-ewbTYS5eRluTRY7pOzD/ylHUH2Wbgn/qoQvICnJ2vrg="; }; - vendorHash = "sha256-ewJTnoJpnz/237j/mpYpi8Otwu3ge9QN8cNrAfCHvUM="; + vendorHash = "sha256-bS5g4cXzp9zKtlsE/EApm7mQJ3asZdyQ3vw8Vslz62Q="; ldflags = [ "-s" From d6619791686ecca939a88dea0050aff553682888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Mon, 2 Jun 2025 17:08:54 -0600 Subject: [PATCH 073/146] =?UTF-8?q?libosinfo:=201.11.0=20=E2=86=92=201.12.?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NEWS: https://gitlab.com/libosinfo/libosinfo/-/blob/v1.12.0/NEWS Changelog: https://gitlab.com/libosinfo/libosinfo/-/compare/v1.11.0...v1.12.0 --- pkgs/by-name/li/libosinfo/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/li/libosinfo/package.nix b/pkgs/by-name/li/libosinfo/package.nix index c48b1d2c739a..5357338529bf 100644 --- a/pkgs/by-name/li/libosinfo/package.nix +++ b/pkgs/by-name/li/libosinfo/package.nix @@ -25,11 +25,11 @@ stdenv.mkDerivation rec { pname = "libosinfo"; - version = "1.11.0"; + version = "1.12.0"; src = fetchurl { url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz"; - sha256 = "sha256-G/lu7J4UYPPRpxMWPMof8NSAo0kLUImSkvFFSLOpa2A="; + sha256 = "sha256-rYVX7OJnk9pD0m3lZePWjOLua/uNARO3zH3+B/a/xrY="; }; outputs = [ @@ -65,10 +65,10 @@ stdenv.mkDerivation rec { osinfo_db_data_dir = "${osinfo-db}/share"; }) - # Fix build with libxml 2.12 + # Fix build with libxml 2.14 (fetchpatch { - url = "https://gitlab.com/libosinfo/libosinfo/-/commit/5bbdd06503456784c5ffa22409e8bab50470d673.patch"; - hash = "sha256-KqgHXI+lD5VYp2wtA58Drp15TgNK1O3xCaYBy4/B9wc="; + url = "https://gitlab.com/libosinfo/libosinfo/-/commit/0adf38535637ec668e658d43f04f60f11f51574f.patch"; + hash = "sha256-NZija5BwevRU7bAe2SPx9GnoGb1P+mXEbJ5EVAFT9Yw="; }) ]; From 933bdd18bd33b93ccc2588ff838c5bd02352cfb6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 00:29:18 +0000 Subject: [PATCH 074/146] python3Packages.notus-scanner: 22.7.1 -> 22.7.2 --- pkgs/development/python-modules/notus-scanner/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/notus-scanner/default.nix b/pkgs/development/python-modules/notus-scanner/default.nix index 5da6021893c1..f7d6ae2eff5c 100644 --- a/pkgs/development/python-modules/notus-scanner/default.nix +++ b/pkgs/development/python-modules/notus-scanner/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "notus-scanner"; - version = "22.7.1"; + version = "22.7.2"; pyproject = true; disabled = pythonOlder "3.9"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "greenbone"; repo = "notus-scanner"; tag = "v${version}"; - hash = "sha256-iTcGo33GRf+CihSRuK1GFXOpYL6TT8e3CRyK2/AA38U="; + hash = "sha256-JKDnqgEBzEIOI3WIh+SOycACFaYZoZHy7tPFirltDiM="; }; pythonRelaxDeps = [ From 2db2fed53b4d2ffa02506146fa6b3282257dba08 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 00:32:30 +0000 Subject: [PATCH 075/146] jq-lsp: 0.1.11 -> 0.1.12 --- pkgs/by-name/jq/jq-lsp/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/jq/jq-lsp/package.nix b/pkgs/by-name/jq/jq-lsp/package.nix index f82633cd71e6..428947a998f1 100644 --- a/pkgs/by-name/jq/jq-lsp/package.nix +++ b/pkgs/by-name/jq/jq-lsp/package.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "jq-lsp"; - version = "0.1.11"; + version = "0.1.12"; src = fetchFromGitHub { owner = "wader"; repo = "jq-lsp"; tag = "v${version}"; - hash = "sha256-jnHM3VSfi0KioNmXlkjVIlV7/7bKipEvpnV+z13+59Y="; + hash = "sha256-rq6AZsRwCWCIqLH78mOAA2tWa66ys78hRCxnNSXxegc="; }; vendorHash = "sha256-8sZGnoP7l09ZzLJqq8TUCquTOPF0qiwZcFhojUnnEIY="; From d307bc48c00e9f52c28c2ab7de8f8b5a38f9a18f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 00:36:28 +0000 Subject: [PATCH 076/146] cargo-xwin: 0.18.4 -> 0.18.5 --- pkgs/by-name/ca/cargo-xwin/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-xwin/package.nix b/pkgs/by-name/ca/cargo-xwin/package.nix index 5cdbbea67be7..039525814b43 100644 --- a/pkgs/by-name/ca/cargo-xwin/package.nix +++ b/pkgs/by-name/ca/cargo-xwin/package.nix @@ -6,17 +6,17 @@ rustPlatform.buildRustPackage rec { pname = "cargo-xwin"; - version = "0.18.4"; + version = "0.18.5"; src = fetchFromGitHub { owner = "rust-cross"; repo = "cargo-xwin"; rev = "v${version}"; - hash = "sha256-bzyEIBOa0yqjAYjWGw4Fbb8Cv3yCCfJ4vV0q600Rwyk="; + hash = "sha256-P4X7k0r29vEjsVHGOD/rFpltUF2PJHETVyazJ6c8UhQ="; }; useFetchCargoVendor = true; - cargoHash = "sha256-8V5F0uhuJlc2uJtebQoHJT/qRZPCT2gXjwpRFbzUezk="; + cargoHash = "sha256-Oq3IfaywAZPrh4oom2ejPQRTM2BsgEzfaifaLAQzvbw="; meta = with lib; { description = "Cross compile Cargo project to Windows MSVC target with ease"; From f75147c277f232fb10e8b5dcead9d4e00d665323 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 01:01:07 +0000 Subject: [PATCH 077/146] amazon-ecr-credential-helper: 0.9.1 -> 0.10.0 --- pkgs/by-name/am/amazon-ecr-credential-helper/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/am/amazon-ecr-credential-helper/package.nix b/pkgs/by-name/am/amazon-ecr-credential-helper/package.nix index 978b8cbb1c69..fa979d84fdfc 100644 --- a/pkgs/by-name/am/amazon-ecr-credential-helper/package.nix +++ b/pkgs/by-name/am/amazon-ecr-credential-helper/package.nix @@ -8,13 +8,13 @@ buildGoModule rec { pname = "amazon-ecr-credential-helper"; - version = "0.9.1"; + version = "0.10.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "amazon-ecr-credential-helper"; rev = "v${version}"; - sha256 = "sha256-kX1I8HsOJKFogqpfTgFBedM6BObdkpYfYwx3tS2IdMo="; + sha256 = "sha256-so8ZquyfW2YLQj2Og60o3oACy/bxDsjeNA7ky/DHd2I="; }; vendorHash = null; From 2f77e272b134ff23915d03515eebdd4450a26815 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 01:12:05 +0000 Subject: [PATCH 078/146] diamond: 2.1.11 -> 2.1.12 --- pkgs/by-name/di/diamond/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/di/diamond/package.nix b/pkgs/by-name/di/diamond/package.nix index a0104ed26108..3df9a9234b9a 100644 --- a/pkgs/by-name/di/diamond/package.nix +++ b/pkgs/by-name/di/diamond/package.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "diamond"; - version = "2.1.11"; + version = "2.1.12"; src = fetchFromGitHub { owner = "bbuchfink"; repo = "diamond"; rev = "v${version}"; - sha256 = "sha256-X/6sOClMFGBYksMrVfM1Y7MM3NmBEiRpmLg4Rbatc+w="; + sha256 = "sha256-C4hr0Strv7h76NzcOLB0tfbqKSk+Us6cwoJlstYfvto="; }; nativeBuildInputs = [ cmake ]; From 070a7700a6eb9362633b1940e102bbfd6e1e3a2f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 02:25:05 +0000 Subject: [PATCH 079/146] gqlgen: 0.17.73 -> 0.17.74 --- pkgs/by-name/gq/gqlgen/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gq/gqlgen/package.nix b/pkgs/by-name/gq/gqlgen/package.nix index 87f0129aef6f..a45d38f22d3a 100644 --- a/pkgs/by-name/gq/gqlgen/package.nix +++ b/pkgs/by-name/gq/gqlgen/package.nix @@ -6,7 +6,7 @@ }: let - version = "0.17.73"; + version = "0.17.74"; in buildGoModule { pname = "gqlgen"; @@ -16,10 +16,10 @@ buildGoModule { owner = "99designs"; repo = "gqlgen"; tag = "v${version}"; - hash = "sha256-s6D9ohFdUhch2LhpmHYBgpBrO/5WEM1TX/+DIfwxSPc="; + hash = "sha256-vnUsqJTurGK4pymgDHYpatQ8qW00SfJdxk+CfC/62UA="; }; - vendorHash = "sha256-QN3ebVC6cJBnpm9Kyhg16EcXoT2rI1fR6QEf6i74WHg="; + vendorHash = "sha256-k0jWR8t9ZaShEYAXrJi7bUXs7uJ8/rbtHQioQd7/pf8="; subPackages = [ "." ]; From 8e57e96eb13bc3a860fc2b286b534cc2d37ea5b1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 02:31:15 +0000 Subject: [PATCH 080/146] doctl: 1.127.0 -> 1.128.0 --- pkgs/by-name/do/doctl/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/do/doctl/package.nix b/pkgs/by-name/do/doctl/package.nix index 864380f6bdd7..50f0c3a67c5d 100644 --- a/pkgs/by-name/do/doctl/package.nix +++ b/pkgs/by-name/do/doctl/package.nix @@ -9,7 +9,7 @@ buildGoModule rec { pname = "doctl"; - version = "1.127.0"; + version = "1.128.0"; vendorHash = null; @@ -42,7 +42,7 @@ buildGoModule rec { owner = "digitalocean"; repo = "doctl"; tag = "v${version}"; - hash = "sha256-wdba3kly0Iqsqs0i+AGMsNtzO3dsFIZVc0g0arL/NfM="; + hash = "sha256-/G+T7tvK1Jg13a6cBA2T58yPPypP1j1/6IvBws3SEOA="; }; meta = { From bd20ceb6d9978c6d2f494f230f1cb9c6c864fac3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 02:33:17 +0000 Subject: [PATCH 081/146] rofi-unwrapped: 1.7.9 -> 1.7.9.1 --- pkgs/applications/misc/rofi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/rofi/default.nix b/pkgs/applications/misc/rofi/default.nix index cb3793b782f4..b7e9ea3e707a 100644 --- a/pkgs/applications/misc/rofi/default.nix +++ b/pkgs/applications/misc/rofi/default.nix @@ -29,14 +29,14 @@ stdenv.mkDerivation rec { pname = "rofi-unwrapped"; - version = "1.7.9"; + version = "1.7.9.1"; src = fetchFromGitHub { owner = "davatorium"; repo = "rofi"; rev = version; fetchSubmodules = true; - hash = "sha256-YI6ShRRBJ9ExkzDnI31YjtI1mWRWPzVRYQvpTAtLTeI="; + hash = "sha256-HZMVGlK6ig7kWf/exivoiTe9J/SLgjm7VwRm+KgKN44="; }; preConfigure = '' From 9cdb3ffef0a9d9a74d40b55e5d8544198d935b43 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 02:34:22 +0000 Subject: [PATCH 082/146] cotp: 1.9.5 -> 1.9.6 --- pkgs/by-name/co/cotp/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/co/cotp/package.nix b/pkgs/by-name/co/cotp/package.nix index f4425425c19f..9ad7560e9927 100644 --- a/pkgs/by-name/co/cotp/package.nix +++ b/pkgs/by-name/co/cotp/package.nix @@ -8,17 +8,17 @@ rustPlatform.buildRustPackage rec { pname = "cotp"; - version = "1.9.5"; + version = "1.9.6"; src = fetchFromGitHub { owner = "replydev"; repo = "cotp"; rev = "v${version}"; - hash = "sha256-Jv5BT7P/OXLkkfrEf+8x2IrACMhqr3zpbcKX8I/TzDc="; + hash = "sha256-bbmxnzCUvhZ7rjaqbFCB+Qqx3EfY/W8OKhMNlt6KQ64="; }; useFetchCargoVendor = true; - cargoHash = "sha256-9iZyi3TPnqRpt+SRI3t7kwwiGpwUjQ0BrLZQY3X383o="; + cargoHash = "sha256-pWgHwqU/xbD5aA2ZCuI7PaImmdojHATgZ+SVSwjnqbk="; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxcb ]; From 569709b8dc7e00cc83ef7f9e7862112ea1f77c85 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 02:41:55 +0000 Subject: [PATCH 083/146] xlockmore: 5.82 -> 5.83 --- pkgs/by-name/xl/xlockmore/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/xl/xlockmore/package.nix b/pkgs/by-name/xl/xlockmore/package.nix index 857e200f4bac..b3d209294a1e 100644 --- a/pkgs/by-name/xl/xlockmore/package.nix +++ b/pkgs/by-name/xl/xlockmore/package.nix @@ -13,11 +13,11 @@ stdenv.mkDerivation rec { pname = "xlockmore"; - version = "5.82"; + version = "5.83"; src = fetchurl { url = "http://sillycycle.com/xlock/xlockmore-${version}.tar.xz"; - sha256 = "sha256-1pB43ywLfflQLg2PooSTKwWSepcrYo16tnyJwG/mt7I="; + sha256 = "sha256-ppjQmf1qPBnEHhl8EG2ejDo4pOj/B3wqpLrHYp1pyMM="; curlOpts = "--user-agent 'Mozilla/5.0'"; }; From 50d08c8985d7d9bd4b0c533a7f013e263c151fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Jun 2025 19:45:41 -0700 Subject: [PATCH 084/146] python3Packages.anchor-kr: modernize --- .../python-modules/anchor-kr/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/anchor-kr/default.nix b/pkgs/development/python-modules/anchor-kr/default.nix index 10828482b830..563589c651f0 100644 --- a/pkgs/development/python-modules/anchor-kr/default.nix +++ b/pkgs/development/python-modules/anchor-kr/default.nix @@ -2,11 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: buildPythonPackage { - pname = "anchor"; - version = "3"; - format = "setuptools"; + pname = "anchor-kr"; + version = "0.1.3"; + pyproject = true; src = fetchFromGitHub { owner = "justfoolingaround"; @@ -16,12 +17,14 @@ buildPythonPackage { hash = "sha256-t75IFBSz6ncHRqXRxbrM9EQdr8xPXjSd9di+/y2LegE="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "anchor" ]; - meta = with lib; { + meta = { description = "Python library for scraping"; homepage = "https://github.com/justfoolingaround/anchor"; - license = licenses.unfree; - maintainers = with maintainers; [ passivelemon ]; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ passivelemon ]; }; } From f3a853bea05b5be01f3667fb5c8f2cac543573d1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 05:09:05 +0000 Subject: [PATCH 085/146] python3Packages.kserve: 0.15.1 -> 0.15.2 --- pkgs/development/python-modules/kserve/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/kserve/default.nix b/pkgs/development/python-modules/kserve/default.nix index 239a35a08963..4307c502f8b3 100644 --- a/pkgs/development/python-modules/kserve/default.nix +++ b/pkgs/development/python-modules/kserve/default.nix @@ -54,14 +54,14 @@ buildPythonPackage rec { pname = "kserve"; - version = "0.15.1"; + version = "0.15.2"; pyproject = true; src = fetchFromGitHub { owner = "kserve"; repo = "kserve"; tag = "v${version}"; - hash = "sha256-k+uyOhsxWPpiA82wCCEn53W2VQgSHGgSABFipEPErRk="; + hash = "sha256-NklR2Aoa5UdWkqNOfX+xl3R158JDSQtStXv9DkklOwM="; }; sourceRoot = "${src.name}/python/kserve"; @@ -176,7 +176,7 @@ buildPythonPackage rec { meta = { description = "Standardized Serverless ML Inference Platform on Kubernetes"; homepage = "https://github.com/kserve/kserve/tree/master/python/kserve"; - changelog = "https://github.com/kserve/kserve/releases/tag/v${version}"; + changelog = "https://github.com/kserve/kserve/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; }; From 0847f6f7ddceaed48da5eb808a393eea27a54635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Jun 2025 22:23:37 -0700 Subject: [PATCH 086/146] python3Packages.curl-cffi: 0.10.0 -> 0.11.1 Diff: https://github.com/lexiforest/curl_cffi/compare/refs/tags/v0.10.0...refs/tags/v0.11.1 Changelog: https://github.com/lexiforest/curl_cffi/releases/tag/v0.11.0 --- .../python-modules/curl-cffi/default.nix | 61 +++++++++++++++++-- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/curl-cffi/default.nix b/pkgs/development/python-modules/curl-cffi/default.nix index 1f55b5bc466f..6ba6faedf147 100644 --- a/pkgs/development/python-modules/curl-cffi/default.nix +++ b/pkgs/development/python-modules/curl-cffi/default.nix @@ -7,19 +7,31 @@ curl-impersonate-chrome, cffi, certifi, - typing-extensions, + charset-normalizer, + cryptography, + fastapi, + httpx, + proxy-py, + pytest-asyncio, + pytest-trio, + pytestCheckHook, + python-multipart, + trustme, + uvicorn, + websockets, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "curl-cffi"; - version = "0.10.0"; + version = "0.11.1"; pyproject = true; src = fetchFromGitHub { owner = "lexiforest"; repo = "curl_cffi"; tag = "v${version}"; - hash = "sha256-h7PPlxjIVT6T9x7gKBSifuWl8wzUNDwRcaUifUS0icM="; + hash = "sha256-hpsAga5741oTBT87Rt7XTyxxu7SQ5Usw+2VVr54oA8k="; }; patches = [ ./use-system-libs.patch ]; @@ -33,7 +45,6 @@ buildPythonPackage rec { dependencies = [ cffi certifi - typing-extensions ]; env = lib.optionalAttrs stdenv.cc.isGNU { @@ -42,7 +53,49 @@ buildPythonPackage rec { pythonImportsCheck = [ "curl_cffi" ]; + nativeCheckInputs = [ + charset-normalizer + cryptography + fastapi + httpx + proxy-py + pytest-asyncio + pytest-trio + pytestCheckHook + python-multipart + trustme + uvicorn + websockets + writableTmpDirAsHomeHook + ]; + + preCheck = '' + # import from $out + rm -r curl_cffi + ''; + + pytestFlags = [ + "tests/unittest" + # test accesses network + "--deselect tests/unittest/test_smoke.py::test_async" + ]; + + disabledTests = [ + # FIXME ImpersonateError: Impersonating chrome136 is not supported + "test_impersonate_without_version" + "test_with_impersonate" + # InvalidURL: Invalid URL component 'path' + "test_update_params" + # tests access network + "test_add_handle" + "test_socket_action" + "test_without_impersonate" + ]; + + __darwinAllowLocalNetworking = true; + meta = with lib; { + changelog = "https://github.com/lexiforest/curl_cffi/releases/tag/${src.tag}"; description = "Python binding for curl-impersonate via cffi"; homepage = "https://curl-cffi.readthedocs.io"; license = licenses.mit; From 9912fec25517dfc0d3201f10928386d9b1b3f671 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 05:48:36 +0000 Subject: [PATCH 087/146] git-spice: 0.13.0 -> 0.14.1 --- pkgs/by-name/gi/git-spice/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gi/git-spice/package.nix b/pkgs/by-name/gi/git-spice/package.nix index 1305f143527f..d1225d994d01 100644 --- a/pkgs/by-name/gi/git-spice/package.nix +++ b/pkgs/by-name/gi/git-spice/package.nix @@ -10,16 +10,16 @@ buildGo124Module rec { pname = "git-spice"; - version = "0.13.0"; + version = "0.14.1"; src = fetchFromGitHub { owner = "abhinav"; repo = "git-spice"; tag = "v${version}"; - hash = "sha256-hqdU0j7H3hhhjGV4lmluG1D6NXNqI80d9gGr5KJ9D+Q="; + hash = "sha256-Le33Ri2mt6ccTpC0GN0TLtQKqN/cGD2Rt8ZG56lnjtI="; }; - vendorHash = "sha256-Wi/NNqHnHrfikO0EWDXNdTjPmgHrGSs2k612c0w8OA8="; + vendorHash = "sha256-ccFt9T/p//ABMK/SuHKKnQJZH8yM0yRzYm/cON4I6CQ="; subPackages = [ "." ]; From 929a16ec26ae15effd9b52d1d4e54b80c7cc4938 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 06:27:47 +0000 Subject: [PATCH 088/146] python3Packages.roombapy: 1.9.0 -> 1.9.1 --- pkgs/development/python-modules/roombapy/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/roombapy/default.nix b/pkgs/development/python-modules/roombapy/default.nix index 26f79276053a..cd18675e0ed9 100644 --- a/pkgs/development/python-modules/roombapy/default.nix +++ b/pkgs/development/python-modules/roombapy/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "roombapy"; - version = "1.9.0"; + version = "1.9.1"; pyproject = true; disabled = pythonOlder "3.10"; @@ -25,7 +25,7 @@ buildPythonPackage rec { owner = "pschmitt"; repo = "roombapy"; tag = version; - hash = "sha256-fcCK6yby9Jfc4lSSETn13Y+4A3qjvYfm4Ps3T5yG4Rc="; + hash = "sha256-63PqNmJC0IWPPMVyZdKoZikvBA4phMcYxlTBk/m1cq0="; }; nativeBuildInputs = [ @@ -67,7 +67,7 @@ buildPythonPackage rec { description = "Python program and library to control Wi-Fi enabled iRobot Roombas"; mainProgram = "roombapy"; homepage = "https://github.com/pschmitt/roombapy"; - changelog = "https://github.com/pschmitt/roombapy/releases/tag/${version}"; + changelog = "https://github.com/pschmitt/roombapy/releases/tag/${src.tag}"; license = licenses.mit; maintainers = [ ]; }; From 8b485354b56ab7e7c6a25b6835910a6e4726e32f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 06:42:16 +0000 Subject: [PATCH 089/146] terraform-providers.kafka: 0.10.1 -> 0.10.2 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 0f38468968ec..8f169ae61bb4 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -696,13 +696,13 @@ "vendorHash": "sha256-Dd02Ikt51eh/FBEtswe8Qr6P5tgQFZJTKgO01gxPX3s=" }, "kafka": { - "hash": "sha256-xFuNCHUE2r+NGsvLmD2W+d9oB6RjV/2o4sAxqTOJUtE=", + "hash": "sha256-RZwag424lXwI1GR/kFOcpv+huaYMyG4jcFjkhvA0Nlc=", "homepage": "https://registry.terraform.io/providers/Mongey/kafka", "owner": "Mongey", "repo": "terraform-provider-kafka", - "rev": "v0.10.1", + "rev": "v0.10.2", "spdx": "MIT", - "vendorHash": "sha256-wnyCBxqvmWfgR/MLRVcA/cXeq08qcuhSVIsSWYPTJGc=" + "vendorHash": "sha256-57V/0JIsq+pqbWmg3iZ0s8t8iD2Xtipy08I/+ZJCkNc=" }, "kafka-connect": { "hash": "sha256-XMGpK22Ww8swvfrnbClxjErVmkBKX3dxdlkjgNJHlCE=", From 9a11225bbde5373bc2ae3363f16c22c7ebe6839e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 06:59:40 +0000 Subject: [PATCH 090/146] dooit-extras: 0.2.0 -> 0.2.1 --- pkgs/by-name/do/dooit-extras/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/do/dooit-extras/package.nix b/pkgs/by-name/do/dooit-extras/package.nix index ec68b74ba121..5cd863f26376 100644 --- a/pkgs/by-name/do/dooit-extras/package.nix +++ b/pkgs/by-name/do/dooit-extras/package.nix @@ -10,14 +10,14 @@ let in python3.pkgs.buildPythonPackage rec { pname = "dooit-extras"; - version = "0.2.0"; + version = "0.2.1"; pyproject = true; src = fetchFromGitHub { owner = "dooit-org"; repo = "dooit-extras"; tag = "v${version}"; - hash = "sha256-ZBzzH8k4oC3ovLF9+9rzzFZaDDoOvcbX5NCh1WBedK4="; + hash = "sha256-h29lN32Qca8edF1aLhLxnV97MMEapX3Docc+CIEF6I4="; }; build-system = with python3.pkgs; [ poetry-core ]; From a5d6651ce12ecd3239fdd739a1bf9a9f64b70cfc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 08:24:30 +0000 Subject: [PATCH 091/146] python3Packages.awswrangler: 3.11.0 -> 3.12.0 --- pkgs/development/python-modules/awswrangler/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/awswrangler/default.nix b/pkgs/development/python-modules/awswrangler/default.nix index dd1c755c047d..25f935b01284 100644 --- a/pkgs/development/python-modules/awswrangler/default.nix +++ b/pkgs/development/python-modules/awswrangler/default.nix @@ -26,7 +26,7 @@ buildPythonPackage rec { pname = "awswrangler"; - version = "3.11.0"; + version = "3.12.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -35,7 +35,7 @@ buildPythonPackage rec { owner = "aws"; repo = "aws-sdk-pandas"; tag = version; - hash = "sha256-dIdNrfhBrfrzXmspw25yd/y6MbXRrLfDveCQk+AERV0="; + hash = "sha256-BudK7pP7b8YJRyDCQAZv8FtxF5paA+AR/ZBt9UO3XjM="; }; pythonRelaxDeps = [ @@ -86,7 +86,7 @@ buildPythonPackage rec { meta = with lib; { description = "Pandas on AWS"; homepage = "https://github.com/aws/aws-sdk-pandas"; - changelog = "https://github.com/aws/aws-sdk-pandas/releases/tag/${version}"; + changelog = "https://github.com/aws/aws-sdk-pandas/releases/tag/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ mcwitt ]; }; From 46824d3b0823638bc9ae6acc429f810b0a8a20b3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 08:36:14 +0000 Subject: [PATCH 092/146] vaultenv: 0.18.0 -> 0.19.0 --- pkgs/development/tools/haskell/vaultenv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/vaultenv/default.nix b/pkgs/development/tools/haskell/vaultenv/default.nix index 0b44a8b05395..ee9d867c128d 100644 --- a/pkgs/development/tools/haskell/vaultenv/default.nix +++ b/pkgs/development/tools/haskell/vaultenv/default.nix @@ -32,13 +32,13 @@ }: mkDerivation rec { pname = "vaultenv"; - version = "0.18.0"; + version = "0.19.0"; src = fetchFromGitHub { owner = "channable"; repo = "vaultenv"; rev = "v${version}"; - hash = "sha256-Qb9GMAFjQBsPItwkiWSMWv8WJyc5hOz9Yrq5PPOFVQo="; + hash = "sha256-x3c9TKrCF3tsEFofYAXfK6DWdirEUxWWTttNqU/sJSc="; }; buildTools = [ hpack ]; From bce8b8ba7378adc1728b071a430aae21b613fa2f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Jun 2025 21:12:13 +0000 Subject: [PATCH 093/146] python3Packages.mpi-pytest: 2025.4.0 -> 2025.5.0 mpi-pytest now support OpenMPI forking mode, postPatch is no more needed. changelog: https://github.com/firedrakeproject/mpi-pytest/releases/tag/v2025.5.0 diff: https://github.com/firedrakeproject/mpi-pytest/compare/v2025.4.0...v2025.5.0 --- .../development/python-modules/mpi-pytest/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/mpi-pytest/default.nix b/pkgs/development/python-modules/mpi-pytest/default.nix index 585307c94b83..740c0de6dc3b 100644 --- a/pkgs/development/python-modules/mpi-pytest/default.nix +++ b/pkgs/development/python-modules/mpi-pytest/default.nix @@ -11,23 +11,16 @@ buildPythonPackage rec { pname = "mpi-pytest"; - version = "2025.4.0"; + version = "2025.5.0"; pyproject = true; src = fetchFromGitHub { owner = "firedrakeproject"; repo = "mpi-pytest"; tag = "v${version}"; - hash = "sha256-r9UB5H+qAJc6k2SVAiOCI2yRDLNv2zKRmfrAan+cX9I="; + hash = "sha256-Eq53rCM3xwY30BuGUaTH4Nuloc/9kGJMFhspLH04zqE="; }; - # A temporary fixup to support fork mode with openmpi implementation - # See https://github.com/firedrakeproject/mpi-pytest/pull/17 - postPatch = lib.optionalString (mpi4py.mpi.pname == "openmpi") '' - substituteInPlace pytest_mpi/plugin.py \ - --replace-fail '"-genv", CHILD_PROCESS_FLAG, "1"' '"-x", f"{CHILD_PROCESS_FLAG}=1"' - ''; - build-system = [ setuptools ]; From 190febec5b90a5fae1da7ac705feffb51f58d3aa Mon Sep 17 00:00:00 2001 From: Neyts Zupan Date: Tue, 3 Jun 2025 09:55:03 +0100 Subject: [PATCH 094/146] paretosecurity: 0.2.27 -> 0.2.31 --- pkgs/by-name/pa/paretosecurity/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pa/paretosecurity/package.nix b/pkgs/by-name/pa/paretosecurity/package.nix index 05211c8098fe..53722be17a66 100644 --- a/pkgs/by-name/pa/paretosecurity/package.nix +++ b/pkgs/by-name/pa/paretosecurity/package.nix @@ -17,7 +17,7 @@ buildGoModule (finalAttrs: { webkitgtk_4_1 ]; pname = "paretosecurity"; - version = "0.2.27"; + version = "0.2.31"; src = fetchFromGitHub { owner = "ParetoSecurity"; @@ -26,7 +26,7 @@ buildGoModule (finalAttrs: { hash = "sha256-dYQNSzovWCX7sj7VjgBc5GHz+5dKLTiB5pvbVSLMyqY="; }; - vendorHash = "sha256-PhuHRs0PjIJqY3ZBC4ga7zFxgf57xfPjJ3VIDaA61F0"; + vendorHash = "sha256-PhuHRs0PjIJqY3ZBC4ga7zFxgf57xfPjJ3VIDaA61F0="; proxyVendor = true; # Skip building the Windows installer From b0324ca0a306cc3b1e642c51e0ca63403f2ab519 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 08:56:43 +0000 Subject: [PATCH 095/146] smpmgr: 0.12.0 -> 0.12.1 --- pkgs/by-name/sm/smpmgr/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sm/smpmgr/package.nix b/pkgs/by-name/sm/smpmgr/package.nix index cbcc7e673820..8f22b5fdf222 100644 --- a/pkgs/by-name/sm/smpmgr/package.nix +++ b/pkgs/by-name/sm/smpmgr/package.nix @@ -7,14 +7,14 @@ python3Packages.buildPythonApplication rec { pname = "smpmgr"; - version = "0.12.0"; + version = "0.12.1"; pyproject = true; src = fetchFromGitHub { owner = "intercreate"; repo = "smpmgr"; tag = version; - hash = "sha256-HNL9e3D/uZwJI0d4escbhe51zKH7hBFAnCGZZuZdla4="; + hash = "sha256-nEDvJ9R5xFY5LU3nFnXQXbvupg3+TbvcUK6/ZlNN788="; }; build-system = with python3Packages; [ @@ -44,7 +44,7 @@ python3Packages.buildPythonApplication rec { meta = { description = "Simple Management Protocol (SMP) Manager for remotely managing MCU firmware"; homepage = "https://github.com/intercreate/smpmgr"; - changelog = "https://github.com/intercreate/smpmgr/releases/tag/${version}"; + changelog = "https://github.com/intercreate/smpmgr/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ otavio ]; mainProgram = "smpmgr"; From 6333a028bb6813fc84a19ca34f9539630815f9dd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 08:59:48 +0000 Subject: [PATCH 096/146] flake-checker: 0.2.6 -> 0.2.7 --- pkgs/by-name/fl/flake-checker/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fl/flake-checker/package.nix b/pkgs/by-name/fl/flake-checker/package.nix index 51b6b98b2ac2..8a1e86d09794 100644 --- a/pkgs/by-name/fl/flake-checker/package.nix +++ b/pkgs/by-name/fl/flake-checker/package.nix @@ -6,17 +6,17 @@ rustPlatform.buildRustPackage rec { pname = "flake-checker"; - version = "0.2.6"; + version = "0.2.7"; src = fetchFromGitHub { owner = "DeterminateSystems"; repo = "flake-checker"; rev = "v${version}"; - hash = "sha256-qEdwtyk5IaYCx67BFnLp4iUN+ewfPMl/wjs9K4hKqGc="; + hash = "sha256-RwkyyrWm0QRNOn7Bb9jKOyJ049B6pPmhbrx8tXpUf4w="; }; useFetchCargoVendor = true; - cargoHash = "sha256-5eaVjrAPxBQdG+LQ6mQ/ZYAdslpdK3mrZ5Vbuwe3iQw="; + cargoHash = "sha256-lB7+2dQGfbn7IhmCAN0jvFTGjJDBpw57VHi3qIwwOZ4="; meta = with lib; { description = "Health checks for your Nix flakes"; From 4420c5078b3c12c493149b573348ff9b9be76717 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 09:00:45 +0000 Subject: [PATCH 097/146] netavark: 1.15.0 -> 1.15.1 --- pkgs/by-name/ne/netavark/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ne/netavark/package.nix b/pkgs/by-name/ne/netavark/package.nix index 0392ef6e3145..2c5ad1b57736 100644 --- a/pkgs/by-name/ne/netavark/package.nix +++ b/pkgs/by-name/ne/netavark/package.nix @@ -11,17 +11,17 @@ rustPlatform.buildRustPackage rec { pname = "netavark"; - version = "1.15.0"; + version = "1.15.1"; src = fetchFromGitHub { owner = "containers"; repo = "netavark"; rev = "v${version}"; - hash = "sha256-V+JwfKWo8gqVq/lF0MMt8sovPRyb3saBxsUhdMo4C5g="; + hash = "sha256-/X0G26XuIBVLnXVADws+CGWwDA8IwTs/XEbA0slaazs="; }; useFetchCargoVendor = true; - cargoHash = "sha256-C2+N3jPdqh/cmJ2efrUnScXo1rFBEec6w4r8M6OfcPo="; + cargoHash = "sha256-orhYOBZDfrbXJ+nNBu2nsiTUbpKuGWmfuryCzyXSjG0="; nativeBuildInputs = [ installShellFiles From 9aec4904a800c576472c660783874ebd74f831bb Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 3 Jun 2025 11:17:41 +0200 Subject: [PATCH 098/146] granian: add meta.changelog --- pkgs/development/python-modules/granian/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/granian/default.nix b/pkgs/development/python-modules/granian/default.nix index 8a75a70eaa59..ccfa53e7e4b4 100644 --- a/pkgs/development/python-modules/granian/default.nix +++ b/pkgs/development/python-modules/granian/default.nix @@ -96,6 +96,7 @@ buildPythonPackage rec { meta = { description = "Rust HTTP server for Python ASGI/WSGI/RSGI applications"; homepage = "https://github.com/emmett-framework/granian"; + changelog = "https://github.com/emmett-framework/granian/releases/tag/v${version}"; license = lib.licenses.bsd3; mainProgram = "granian"; maintainers = with lib.maintainers; [ From 20b282da75d816cca2c6fb30b39d340569020622 Mon Sep 17 00:00:00 2001 From: adamjhf Date: Wed, 21 May 2025 11:56:28 +0000 Subject: [PATCH 099/146] cargo-leptos: 0.2.28 -> 0.2.35 cargo-leptos: 0.2.28 -> 0.2.35 cargo-leptos: fix darwin cargo-leptos: remove vendored-openssl cargo-leptos: fix idmail build x cargo-leptos 2 cargo-leptos remove idmail change revert idmail --- pkgs/by-name/ca/cargo-leptos/package.nix | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-leptos/package.nix b/pkgs/by-name/ca/cargo-leptos/package.nix index 21527f9b2e59..cffa2be21f6e 100644 --- a/pkgs/by-name/ca/cargo-leptos/package.nix +++ b/pkgs/by-name/ca/cargo-leptos/package.nix @@ -1,21 +1,37 @@ { fetchFromGitHub, lib, + stdenv, rustPlatform, + pkg-config, + openssl, }: rustPlatform.buildRustPackage rec { pname = "cargo-leptos"; - version = "0.2.28"; + version = "0.2.35"; src = fetchFromGitHub { owner = "leptos-rs"; repo = "cargo-leptos"; rev = "v${version}"; - hash = "sha256-SjpfM963Zux+H5QhK8prvDLuI56fP5PqX5gcVbthRx4="; + hash = "sha256-CNktytEm6+5QTPAlxNz07+s7gue9dA5zZM82YQOWFSw="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Da9ei4yAOfhSQmQgrUDZCmMeJXTfGnYhI1+L0JT/ECs="; + cargoHash = "sha256-O/JyB47UP6rLeAG1rt1dXhaKfZ71QPg7qAeciHAvrAk="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + env = + { + OPENSSL_NO_VENDOR = 1; + } + // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # Fix for C++ compiler version on darwin for wasm-opt + CRATE_CC_NO_DEFAULTS = 1; + }; # https://github.com/leptos-rs/cargo-leptos#dependencies buildFeatures = [ "no_downloads" ]; # cargo-leptos will try to install missing dependencies on its own otherwise From ed32f66cd0153e934e673efd68b3efe6b7dbcba2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 09:41:36 +0000 Subject: [PATCH 100/146] home-manager: 0-unstable-2025-05-23 -> 0-unstable-2025-06-02 --- pkgs/by-name/ho/home-manager/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ho/home-manager/package.nix b/pkgs/by-name/ho/home-manager/package.nix index 3b9b94a41e17..764292e4985e 100644 --- a/pkgs/by-name/ho/home-manager/package.nix +++ b/pkgs/by-name/ho/home-manager/package.nix @@ -19,14 +19,14 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "home-manager"; - version = "0-unstable-2025-05-23"; + version = "0-unstable-2025-06-02"; src = fetchFromGitHub { name = "home-manager-source"; owner = "nix-community"; repo = "home-manager"; - rev = "7419250703fd5eb50e99bdfb07a86671939103ea"; - hash = "sha256-pQQnbxWpY3IiZqgelXHIe/OAE/Yv4NSQq7fch7M6nXQ="; + rev = "cb809ec1ff15cf3237c6592af9bbc7e4d983e98c"; + hash = "sha256-BJ0qRIdvt5aeqm3zg/5if7b5rruG05zrSX3UpLqjDRk="; }; nativeBuildInputs = [ From b7d46f979198e74e8f12d30a4f7f29e01c43c944 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 09:47:07 +0000 Subject: [PATCH 101/146] n8n: 1.93.0 -> 1.95.2 --- pkgs/by-name/n8/n8n/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/n8/n8n/package.nix b/pkgs/by-name/n8/n8n/package.nix index 6882af2fb37a..42c7448d8669 100644 --- a/pkgs/by-name/n8/n8n/package.nix +++ b/pkgs/by-name/n8/n8n/package.nix @@ -17,18 +17,18 @@ stdenv.mkDerivation (finalAttrs: { pname = "n8n"; - version = "1.93.0"; + version = "1.95.2"; src = fetchFromGitHub { owner = "n8n-io"; repo = "n8n"; tag = "n8n@${finalAttrs.version}"; - hash = "sha256-qq4oehZnwp9Zj+h827exILrgLgM/yHQzjWRQsdmYWgs="; + hash = "sha256-MFREFqDuT7xTCOJ6s6bcDG8jjTSckyqJTvAFSukV5x0="; }; pnpmDeps = pnpm_10.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-bLpYfIIJYmooRX7F/L8e7kdbEKPNJE6EPqjhPdAwJt4="; + hash = "sha256-ikGRHuAy9kmpxhu0Aawk6qL2vMYygSgf3YPdfs7OwOM="; }; nativeBuildInputs = From ac2ffcdeaf60fcf101b4f6390b7581763eb763e2 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 3 Jun 2025 11:59:38 +0200 Subject: [PATCH 102/146] python312Packages.waymax: 0-unstable-2024-03-23 -> 0-unstable-2025-05-30 Diff: https://github.com/waymo-research/waymax/compare/720f9214a9bf79b3da7926497f0cd0468ca3e630...48b33d71aac20a22db7d25f2d3220596899d944a Changelog: https://github.com/waymo-research/waymax/blob/main/CHANGELOG.md --- .../python-modules/waymax/default.nix | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/waymax/default.nix b/pkgs/development/python-modules/waymax/default.nix index 6fb36ddcf8b8..187448c8ea9d 100644 --- a/pkgs/development/python-modules/waymax/default.nix +++ b/pkgs/development/python-modules/waymax/default.nix @@ -21,31 +21,16 @@ buildPythonPackage { pname = "waymax"; - version = "0-unstable-2024-03-23"; + version = "0-unstable-2025-05-30"; pyproject = true; src = fetchFromGitHub { owner = "waymo-research"; repo = "waymax"; - rev = "720f9214a9bf79b3da7926497f0cd0468ca3e630"; - hash = "sha256-B1Rp5MATbEelp6G6K2wwV83QpINhOHgvAxb3mBN52Eg="; + rev = "48b33d71aac20a22db7d25f2d3220596899d944a"; + hash = "sha256-YV0KI0UrFXO3HvKjqJE+K+hJJuYI4GiIR4l1fZNnl/E="; }; - # AttributeError: jax.tree_map was removed in JAX v0.6.0: use jax.tree.map (jax v0.4.25 or newer) or jax.tree_util.tree_map (any JAX version). - # https://github.com/waymo-research/waymax/pull/77 - postPatch = '' - substituteInPlace \ - waymax/agents/expert.py \ - waymax/agents/waypoint_following_agent.py \ - waymax/agents/waypoint_following_agent_test.py \ - waymax/dynamics/abstract_dynamics_test.py \ - waymax/dynamics/state_dynamics_test.py \ - waymax/env/base_environment_test.py \ - waymax/env/rollout_test.py \ - waymax/env/wrappers/brax_wrapper_test.py \ - --replace-fail "jax.tree_map" "jax.tree_util.tree_map" - ''; - build-system = [ setuptools ]; dependencies = [ From 87e7b408996069e2a261a649cc5738a6a78a676e Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Tue, 3 Jun 2025 12:54:40 +0200 Subject: [PATCH 103/146] python313Packages.pytest-spec: 4.0.0 -> 5.0.0 --- pkgs/development/python-modules/pytest-spec/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-spec/default.nix b/pkgs/development/python-modules/pytest-spec/default.nix index e1cc01003aa5..dce9e0d9d6aa 100644 --- a/pkgs/development/python-modules/pytest-spec/default.nix +++ b/pkgs/development/python-modules/pytest-spec/default.nix @@ -12,16 +12,16 @@ buildPythonPackage rec { pname = "pytest-spec"; - version = "4.0.0"; + version = "5.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "pchomik"; repo = "pytest-spec"; tag = version; - hash = "sha256-SOu4ucRcLQSk1YOfNifFDezsB+ZeLXTwbJJ93/3EASk="; + hash = "sha256-EWhKqGOLBa+Eb4fJtkamP8it+hWeK3rGWKgY8mJI53U="; }; build-system = [ From 5c453a33dd17f33cbbf787c1ac90453237084c9d Mon Sep 17 00:00:00 2001 From: rewine Date: Tue, 3 Jun 2025 20:29:16 +0800 Subject: [PATCH 104/146] qv2ray: drop --- .../networking/qv2ray/default.nix | 90 ------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 - 3 files changed, 1 insertion(+), 92 deletions(-) delete mode 100644 pkgs/applications/networking/qv2ray/default.nix diff --git a/pkgs/applications/networking/qv2ray/default.nix b/pkgs/applications/networking/qv2ray/default.nix deleted file mode 100644 index 2e570937f2d7..000000000000 --- a/pkgs/applications/networking/qv2ray/default.nix +++ /dev/null @@ -1,90 +0,0 @@ -{ - lib, - stdenv, - mkDerivation, - fetchFromGitHub, - symlinkJoin, - qttools, - cmake, - grpc, - protobuf_21, - openssl, - pkg-config, - c-ares, - libGL, - zlib, - curl, - v2ray, - v2ray-geoip, - v2ray-domain-list-community, - assets ? [ - v2ray-geoip - v2ray-domain-list-community - ], -}: - -mkDerivation rec { - pname = "qv2ray"; - version = "unstable-2023-07-11"; - - src = fetchFromGitHub { - owner = "Qv2ray"; - repo = "Qv2ray"; - rev = "b3080564809dd8aef864a54ca1b79f0984fe986b"; - hash = "sha256-LwBjuX5x3kQcdEfPLEirWpkMqOigkhNoh/VNmBfPAzw="; - fetchSubmodules = true; - }; - - postPatch = lib.optionals stdenv.hostPlatform.isDarwin '' - substituteInPlace cmake/platforms/macos.cmake \ - --replace \''${QV2RAY_QtX_DIR}/../../../bin/macdeployqt macdeployqt - ''; - - assetsDrv = symlinkJoin { - name = "v2ray-assets"; - paths = assets; - }; - - cmakeFlags = [ - "-DQV2RAY_DISABLE_AUTO_UPDATE=on" - "-DQV2RAY_USE_V5_CORE=on" - "-DQV2RAY_TRANSLATION_PATH=${placeholder "out"}/share/qv2ray/lang" - "-DQV2RAY_DEFAULT_VASSETS_PATH='${assetsDrv}/share/v2ray'" - "-DQV2RAY_DEFAULT_VCORE_PATH='${v2ray}/bin/v2ray'" - ]; - - preConfigure = '' - export _QV2RAY_BUILD_INFO_="Qv2ray Nixpkgs" - export _QV2RAY_BUILD_EXTRA_INFO_="(Nixpkgs build) nixpkgs" - ''; - - buildInputs = [ - libGL - zlib - grpc - protobuf_21 - openssl - c-ares - ]; - - nativeBuildInputs = [ - cmake - pkg-config - qttools - curl - ]; - - meta = with lib; { - description = "GUI frontend to v2ray"; - homepage = "https://github.com/Qv2ray/Qv2ray"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ - poscat - rewine - ]; - platforms = platforms.all; - # never built on aarch64-darwin, x86_64-darwin since update to unstable-2022-09-25 - broken = stdenv.hostPlatform.isDarwin; - mainProgram = "qv2ray"; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 761f9ec1c342..ea7d4b8ab083 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1640,6 +1640,7 @@ mapAliases { quicklispPackagesGCL = throw "Lisp packages have been redesigned. See 'lisp-modules' in the nixpkgs manual."; # Added 2024-05-07 quicklispPackagesSBCL = throw "Lisp packages have been redesigned. See 'lisp-modules' in the nixpkgs manual."; # Added 2024-05-07 quickserve = throw "'quickserve' has been removed because its upstream is unavailable"; # Added 2025-05-10 + qv2ray = throw "'qv2ray' has been removed as it was unmaintained"; # Added 2025-06-03 qxw = throw "'qxw' has been removed due to lack of maintenance upstream. Consider using 'crosswords' instead"; # Added 2024-10-19 ### R ### diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b4db4c33be0..a1de21d47472 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9485,8 +9485,6 @@ with pkgs; } ); - qv2ray = libsForQt5.callPackage ../applications/networking/qv2ray { }; - readline = readline82; readline70 = callPackage ../development/libraries/readline/7.0.nix { }; From d1ff75196d6484561179387566b08c8f6be38d11 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 3 Jun 2025 14:57:39 +0200 Subject: [PATCH 105/146] pretix: expose as python module to local package set This allows consuming pretix as a library for tests. --- pkgs/by-name/pr/pretix/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index 6900d84dbc47..8743450e547d 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -7,6 +7,7 @@ python3, gettext, nixosTests, + pretix, plugins ? [ ], }: @@ -35,6 +36,7 @@ let }; }; + pretix = self.toPythonModule pretix; pretix-plugin-build = self.callPackage ./plugin-build.nix { }; }; }; From bd1e4e641940958a030e7adc11f696fc57ff73e8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 13:03:47 +0000 Subject: [PATCH 106/146] cargo-modules: 0.24.0 -> 0.24.1 --- pkgs/by-name/ca/cargo-modules/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-modules/package.nix b/pkgs/by-name/ca/cargo-modules/package.nix index 1e44adb6cc0e..f580869d1b7b 100644 --- a/pkgs/by-name/ca/cargo-modules/package.nix +++ b/pkgs/by-name/ca/cargo-modules/package.nix @@ -6,17 +6,17 @@ }: rustPlatform.buildRustPackage rec { pname = "cargo-modules"; - version = "0.24.0"; + version = "0.24.1"; src = fetchFromGitHub { owner = "regexident"; repo = "cargo-modules"; tag = "v${version}"; - hash = "sha256-MJswCl5eJjKarB2ufeNLQL0ZPDaRPpX6OGOqszG+a0g="; + hash = "sha256-VApgcyG2wKZ2kXHvToWfFi/YM0Q0Ebw2G1RJfmMrGuI="; }; useFetchCargoVendor = true; - cargoHash = "sha256-N1Bj0fqyirp51DNsrZEtRGOSUPS1YNbk+O3kdboQ+TQ="; + cargoHash = "sha256-kKYB6Dvvw/DkMJ0q9PPltZMBgGQJ50L7MXFOVjkHSEM="; checkFlags = [ "--skip=cfg_test::with_tests::smoke" From 887b9f48160b7b39445808556a9da17cc6c9777c Mon Sep 17 00:00:00 2001 From: Benno Bielmeier Date: Mon, 2 Jun 2025 07:45:25 +0200 Subject: [PATCH 107/146] pretix.plugins.sepadebit: init at 2.6.0 --- .../pr/pretix/plugins/sepadebit/package.nix | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pkgs/by-name/pr/pretix/plugins/sepadebit/package.nix diff --git a/pkgs/by-name/pr/pretix/plugins/sepadebit/package.nix b/pkgs/by-name/pr/pretix/plugins/sepadebit/package.nix new file mode 100644 index 000000000000..d5ad04b3da56 --- /dev/null +++ b/pkgs/by-name/pr/pretix/plugins/sepadebit/package.nix @@ -0,0 +1,64 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + pretix-plugin-build, + setuptools, + + # dependencies + django-localflavor, + sepaxml, + + # tests + django-scopes, + pretix, + pytest-django, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pretix-sepadebit"; + version = "2.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "pretix"; + repo = "pretix-sepadebit"; + tag = "v${version}"; + hash = "sha256-o4HVPuSpYIFjxmYuL+IsJJDkv+4ARuvaDqPjxWxlhMg="; + }; + + build-system = [ + pretix-plugin-build + setuptools + ]; + + dependencies = [ + django-localflavor + sepaxml + ]; + + pythonImportsCheck = [ + "pretix_sepadebit" + ]; + + nativeCheckInputs = [ + django-scopes + pretix + pytest-django + pytestCheckHook + ]; + + preCheck = '' + export DJANGO_SETTINGS_MODULE=pretix.testutils.settings + ''; + + meta = with lib; { + description = "Plugin to receive payments via SEPA direct debit"; + homepage = "https://github.com/pretix/pretix-sepadebit"; + license = licenses.asl20; + maintainers = with maintainers; [ bbenno ]; + }; +} From e7e8d41986d58eacf75068008cce1b8de9787480 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 13:48:34 +0000 Subject: [PATCH 108/146] kubectl-view-allocations: 0.21.1 -> 0.21.2 --- .../networking/cluster/kubectl-view-allocations/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubectl-view-allocations/default.nix b/pkgs/applications/networking/cluster/kubectl-view-allocations/default.nix index 23496281ce2f..0f5924487a47 100644 --- a/pkgs/applications/networking/cluster/kubectl-view-allocations/default.nix +++ b/pkgs/applications/networking/cluster/kubectl-view-allocations/default.nix @@ -8,17 +8,17 @@ rustPlatform.buildRustPackage rec { pname = "kubectl-view-allocations"; - version = "0.21.1"; + version = "0.21.2"; src = fetchFromGitHub { owner = "davidB"; repo = "kubectl-view-allocations"; tag = version; - hash = "sha256-1bE2idLPok6YmB1qyTDQmBg+uzc6/Sza75dSN7QpEcI="; + hash = "sha256-WIByZc2B38NC+kp0ODQjYS81R7vX60A2aoVaE86w/NQ="; }; useFetchCargoVendor = true; - cargoHash = "sha256-QAjANg8os3RID0Lrl7qGEvxT/1i8UBwVfK0G4PHwrXA="; + cargoHash = "sha256-aSI5SN0RujHVq7VNNsV6m3KnQqVTWyqfLmGHhwH/3ig="; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; From 6648c5f4c0cd54ff0ed91f1faad8c24afecea726 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 13:56:59 +0000 Subject: [PATCH 109/146] ffizer: 2.13.2 -> 2.13.3 --- pkgs/by-name/ff/ffizer/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ff/ffizer/package.nix b/pkgs/by-name/ff/ffizer/package.nix index dbcd7a4f2b72..6cd1b410aa32 100644 --- a/pkgs/by-name/ff/ffizer/package.nix +++ b/pkgs/by-name/ff/ffizer/package.nix @@ -10,7 +10,7 @@ rustPlatform.buildRustPackage rec { pname = "ffizer"; - version = "2.13.2"; + version = "2.13.3"; buildFeatures = [ "cli" ]; @@ -18,11 +18,11 @@ rustPlatform.buildRustPackage rec { owner = "ffizer"; repo = "ffizer"; rev = version; - hash = "sha256-GL1tdWOcbdybPayfShoGnxHsqYi8p+DZ6Eo/8bvWElE="; + hash = "sha256-S5iF2xjOw1g6scxUMGn6ghr3iASlLlz6IUYjsLo1wRk="; }; useFetchCargoVendor = true; - cargoHash = "sha256-5hsJ6eMiUPOqAzW1bdXTGTP5tY6VM2tTdySpkJl6pAY="; + cargoHash = "sha256-VYjxSZUFgdrYiL0yzHVLH3MgUx4geypxDV2h8lpqc0o="; nativeBuildInputs = [ pkg-config From d00c99a117ed3f1e6dc9db30382713d61b3a638e Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:52:35 +0200 Subject: [PATCH 110/146] gamescope: 3.16.10 -> 3.16.11 --- pkgs/by-name/ga/gamescope/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ga/gamescope/package.nix b/pkgs/by-name/ga/gamescope/package.nix index 26c47796dcdc..f373a4cce8d5 100644 --- a/pkgs/by-name/ga/gamescope/package.nix +++ b/pkgs/by-name/ga/gamescope/package.nix @@ -49,14 +49,14 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gamescope"; - version = "3.16.10"; + version = "3.16.11"; src = fetchFromGitHub { owner = "ValveSoftware"; repo = "gamescope"; tag = finalAttrs.version; fetchSubmodules = true; - hash = "sha256-MZhIsnSp2uGMQds5zEhF8WZgGNHDGH+3A2TGjB6Vn10="; + hash = "sha256-Hj/o5QcjCtMoteKOFU9uZmPIQ28ZlM83BT4MAQTmqQQ="; }; patches = [ From adad603923fe4c9f9ea6ac9e454005cc2958a113 Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 3 Jun 2025 18:20:31 +0200 Subject: [PATCH 111/146] ungoogled-chromium: 137.0.7151.55-1 -> 137.0.7151.68-1 https://chromereleases.googleblog.com/2025/06/stable-channel-update-for-desktop.html This update includes 3 security fixes. Google is aware that an exploit for CVE-2025-5419 exists in the wild. CVEs: CVE-2025-5419 CVE-2025-5068 --- .../networking/browsers/chromium/info.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/info.json b/pkgs/applications/networking/browsers/chromium/info.json index 5a20483448ed..d5dad782046f 100644 --- a/pkgs/applications/networking/browsers/chromium/info.json +++ b/pkgs/applications/networking/browsers/chromium/info.json @@ -797,7 +797,7 @@ } }, "ungoogled-chromium": { - "version": "137.0.7151.55", + "version": "137.0.7151.68", "deps": { "depot_tools": { "rev": "1fcc527019d786502b02f71b8b764ee674a40953", @@ -808,16 +808,16 @@ "hash": "sha256-+nKP2hBUKIqdNfDz1vGggXSdCuttOt0GwyGUQ3Z1ZHI=" }, "ungoogled-patches": { - "rev": "137.0.7151.55-1", - "hash": "sha256-m8un3k5gz8nqQIvulvV2yhY/TQZ7wcp1zwQmtqjbCEw=" + "rev": "137.0.7151.68-1", + "hash": "sha256-oPYNvnBuBKBb1SRNQkQeApmPVDoV+bFVjCh9HKa4A8o=" }, "npmHash": "sha256-I6MsfAhrLRmgiRJ13LSejfy2N63C3Oug5tOOXA622j4=" }, "DEPS": { "src": { "url": "https://chromium.googlesource.com/chromium/src.git", - "rev": "254bc711794d7ad269495f3d419a209935b78cad", - "hash": "sha256-dB81lgjgVK0qXWgAddB7G4L7rsJpZp+0VsjDKvGugEs=", + "rev": "2989ffee9373ea8b8623bd98b3cb350a8e95cadc", + "hash": "sha256-lPmmXVCNUa9of8d52hUejImPSEfOz7v7PlovZS4cfIE=", "recompress": true }, "src/third_party/clang-format/script": { @@ -1037,8 +1037,8 @@ }, "src/third_party/devtools-frontend/src": { "url": "https://chromium.googlesource.com/devtools/devtools-frontend", - "rev": "a54ed1df191a9e2aff2e9ef453ee6fdc959dd125", - "hash": "sha256-E6sx2ioDZRWJljbS17ztRwz+gsDhIHiluvkUx1rRZcw=" + "rev": "fdc8ca697612f90e7ddf2621dffbc43733d2d238", + "hash": "sha256-jKYldgZJwJeTQavmcM9enTdGN8+zt/EG7K1E9wQYIBA=" }, "src/third_party/dom_distiller_js/dist": { "url": "https://chromium.googlesource.com/chromium/dom-distiller/dist.git", @@ -1587,8 +1587,8 @@ }, "src/v8": { "url": "https://chromium.googlesource.com/v8/v8.git", - "rev": "44fdd9108308773dd3f4fa040de5f4f75edf671f", - "hash": "sha256-BkLOmb97p2NcAIuQiDjIoVAe49h9iv79rC5G8wyD1as=" + "rev": "e398f9bf6d5c8a768ab736f46146d7349cf31547", + "hash": "sha256-cJx8IgUB3UA3jEPvb5aDvHLYmAnHydK1qR11q6Y5PnA=" } } } From 91129dac068ebdf5afda91c3760fe2f9f7d8c2e6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 16:34:34 +0000 Subject: [PATCH 112/146] libretro.swanstation: 0-unstable-2025-01-17 -> 0-unstable-2025-05-26 --- pkgs/applications/emulators/libretro/cores/swanstation.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/libretro/cores/swanstation.nix b/pkgs/applications/emulators/libretro/cores/swanstation.nix index 3e8041379e41..47d74a9bed5c 100644 --- a/pkgs/applications/emulators/libretro/cores/swanstation.nix +++ b/pkgs/applications/emulators/libretro/cores/swanstation.nix @@ -6,13 +6,13 @@ }: mkLibretroCore { core = "swanstation"; - version = "0-unstable-2025-01-17"; + version = "0-unstable-2025-05-26"; src = fetchFromGitHub { owner = "libretro"; repo = "swanstation"; - rev = "10af0c78ba0e3516e70f4ed7c6020827bdb2647e"; - hash = "sha256-xxyWvsDF3FXTaP7GOGr9Zym0DgNZKJ4x9BDUgDzcHYA="; + rev = "05cee5f56c37eaa3a243e0906d2082b025598056"; + hash = "sha256-Cwf6hZKl+rE00C0rFq7VhTj3qG4rszQ+8qZQMZ+H7e8="; }; extraNativeBuildInputs = [ cmake ]; From 1412c4c7ba4ec484080e8b58255a5265f73e6866 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 17:06:36 +0000 Subject: [PATCH 113/146] ddns-go: 6.9.3 -> 6.9.5 --- pkgs/by-name/dd/ddns-go/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/dd/ddns-go/package.nix b/pkgs/by-name/dd/ddns-go/package.nix index e390d5c7a1f3..b3a1f333f843 100644 --- a/pkgs/by-name/dd/ddns-go/package.nix +++ b/pkgs/by-name/dd/ddns-go/package.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "ddns-go"; - version = "6.9.3"; + version = "6.9.5"; src = fetchFromGitHub { owner = "jeessy2"; repo = "ddns-go"; rev = "v${version}"; - hash = "sha256-SvhfrVdVn5hvtnDWLg6tdv8wXicUBt3U0CjseJLPbVY="; + hash = "sha256-FwLS233yGPXzBfHscJV4JCNqJru0hOAA808DVis4V0s="; }; vendorHash = "sha256-RPYjw4G1jfsrge1eXKdQ6RdNL7srjagUY14GzXBJvpI="; From e2530c17470db205d877145a8276639413918d49 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 17:08:01 +0000 Subject: [PATCH 114/146] jumppad: 0.20.0 -> 0.20.1 --- pkgs/by-name/ju/jumppad/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ju/jumppad/package.nix b/pkgs/by-name/ju/jumppad/package.nix index 07166a513a97..840d60ab6f1b 100644 --- a/pkgs/by-name/ju/jumppad/package.nix +++ b/pkgs/by-name/ju/jumppad/package.nix @@ -6,15 +6,15 @@ buildGoModule rec { pname = "jumppad"; - version = "0.20.0"; + version = "0.20.1"; src = fetchFromGitHub { owner = "jumppad-labs"; repo = "jumppad"; rev = version; - hash = "sha256-g46sbsAa0c7smCDMDLhGIJ8KlpEH9gHSV4/uRLQjxL8="; + hash = "sha256-K+HWXtuKe0g8K3SpfbHgKzuTxiz68MSvzeI07fm0O4U="; }; - vendorHash = "sha256-ZYcjlOt0y5fhbMmxTgr8vAFO8vhqLDTNKonYf0f1J58="; + vendorHash = "sha256-mr7Rnqp2rPIeW9oqNMbxc0SR+l8pPhKm6jk6EEycpRQ="; subPackages = [ "." ]; From f92176411587dfd0946be858500ee7784e2024b5 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 3 Jun 2025 19:14:44 +0200 Subject: [PATCH 115/146] maintainers: update _6543 by adding matrix contact Signed-off-by: 6543 <6543@obermui.de> --- maintainers/maintainer-list.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c36617bbaf80..1c400fe9e2dd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -265,6 +265,7 @@ }; _6543 = { email = "6543@obermui.de"; + matrix = "@marddl:obermui.de"; github = "6543"; githubId = 24977596; name = "6543"; From 0b53077f973b4cbd51e8f7a1a3a222bfe9bd9230 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 3 Jun 2025 19:37:08 +0200 Subject: [PATCH 116/146] gpu-viewer: 3.12 -> 3.13 Diff: https://github.com/arunsivaramanneo/gpu-viewer/compare/refs/tags/v3.12...refs/tags/v3.13 Changelog: https://github.com/arunsivaramanneo/GPU-Viewer/releases/tag/v3.13 --- pkgs/by-name/gp/gpu-viewer/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/gp/gpu-viewer/package.nix b/pkgs/by-name/gp/gpu-viewer/package.nix index ebc91e8e9d7f..f726b77f1c9f 100644 --- a/pkgs/by-name/gp/gpu-viewer/package.nix +++ b/pkgs/by-name/gp/gpu-viewer/package.nix @@ -29,14 +29,14 @@ python3Packages.buildPythonApplication rec { pname = "gpu-viewer"; - version = "3.12"; + version = "3.13"; pyproject = false; src = fetchFromGitHub { owner = "arunsivaramanneo"; repo = "gpu-viewer"; tag = "v${version}"; - hash = "sha256-wVgAAKqlf5mtj2u+DsRPvYeVta7wAr+eCXVM1c/l6bo="; + hash = "sha256-0owVFnAy2jncNzcWma8vLAAXWOZJ7d56yfn5fr2c2lU="; }; nativeBuildInputs = [ From a714c291e04a18a610c2d646e9bfed99d80bff17 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Wed, 4 Jun 2025 01:47:17 +0800 Subject: [PATCH 117/146] uv: 0.7.9 -> 0.7.10 --- pkgs/by-name/uv/uv/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 44459e7caa5b..495c48f73f87 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -18,17 +18,17 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "uv"; - version = "0.7.9"; + version = "0.7.10"; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; tag = finalAttrs.version; - hash = "sha256-Q2HOR8kpHuCB4c61vS0yojyue5tYNCHpx/NuG0HGHl4="; + hash = "sha256-NdePwYsAIphAJxtD+sCC7vSouWt+i+uPEp+b0zRlLg0="; }; useFetchCargoVendor = true; - cargoHash = "sha256-oIgvufZsS65gL0SL8WQggjZ3UFPDfEpf0yM+kkkUiqg="; + cargoHash = "sha256-vPs6VwhnMsnoTpktdLlOdYcw1X35xN/alwZ5zEyHmEY="; buildInputs = [ rust-jemalloc-sys From 47a1afc2e9e320b09887d7e6bdb44e4cf692c98f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 17:48:11 +0000 Subject: [PATCH 118/146] sioyek: 2.0.0-unstable-2025-05-23 -> 2.0.0-unstable-2025-05-30 --- pkgs/by-name/si/sioyek/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/si/sioyek/package.nix b/pkgs/by-name/si/sioyek/package.nix index a44e9826df8d..0cd41434b56f 100644 --- a/pkgs/by-name/si/sioyek/package.nix +++ b/pkgs/by-name/si/sioyek/package.nix @@ -15,13 +15,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "sioyek"; - version = "2.0.0-unstable-2025-05-23"; + version = "2.0.0-unstable-2025-05-30"; src = fetchFromGitHub { owner = "ahrm"; repo = "sioyek"; - rev = "d73a2fcd74c0a119c397372a79aeea628205d4a7"; - hash = "sha256-ZKAv/G/Bgb3lxEx+WRupTBxo4Gf5yFbZ+siNyz5lABY="; + rev = "43402f6207f241ea0bb2854dfd9159e175649921"; + hash = "sha256-mB7vBnvSrQdrPO4yLKRmDvYfuDOCfOshV64cAVGsdDU="; }; buildInputs = From 228d26d7a23ca296826062a7d43f8fa0c24fdf97 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 17:56:30 +0000 Subject: [PATCH 119/146] vault: 1.19.4 -> 1.19.5 --- pkgs/by-name/va/vault/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/va/vault/package.nix b/pkgs/by-name/va/vault/package.nix index eb560c67b588..891c9d16be2a 100644 --- a/pkgs/by-name/va/vault/package.nix +++ b/pkgs/by-name/va/vault/package.nix @@ -12,16 +12,16 @@ buildGoModule rec { pname = "vault"; - version = "1.19.4"; + version = "1.19.5"; src = fetchFromGitHub { owner = "hashicorp"; repo = "vault"; rev = "v${version}"; - hash = "sha256-IF67/aWBUMFjAyC0TloKOJUa3zenk47QaCTBKwOltvw="; + hash = "sha256-pj9aaEpXEmBBjJOqdvD2bYip5gg3pUob7gmV8rbhnuo="; }; - vendorHash = "sha256-tVCSEqAlyogwFSBWtFEzDl5ziteoBexqQ0xaGmk8F+k="; + vendorHash = "sha256-tOGB9psxlgC+h/uJd93tkpDYzi/xIZ25rDMQ4LnX9Pg="; proxyVendor = true; From 27fcbb07fe26ef0a16c2988a26e53c69449d2888 Mon Sep 17 00:00:00 2001 From: jonasschultheiss Date: Tue, 3 Jun 2025 20:05:44 +0200 Subject: [PATCH 120/146] terraform-providers.proxmox: 3.0.1-rc8 -> 3.0.2-rc01 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index ae415610983a..15776641754d 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1066,13 +1066,13 @@ "vendorHash": "sha256-mnKXYT0GfIS+ODzBCS9l4rLF1ugadesmpgdOgj74nLg=" }, "proxmox": { - "hash": "sha256-agupFUy/4D0gJ12AhJDNt0FPnSWM1laBban13z04pPA=", + "hash": "sha256-vrlZ2bt2Eczst+Xu5BZZqFp2aJzb1WrHZS/p3f99gRI=", "homepage": "https://registry.terraform.io/providers/Telmate/proxmox", "owner": "Telmate", "repo": "terraform-provider-proxmox", - "rev": "v3.0.1-rc8", + "rev": "v3.0.2-rc01", "spdx": "MIT", - "vendorHash": "sha256-LZ3g/UuI+u4ULaM2taso9GgSsmxJICjKhrSaWIL6nCw=" + "vendorHash": "sha256-H8nmIaBwyBLO61Wys16YZgMHVFcCLe0eP+VbUUMc47c=" }, "rabbitmq": { "hash": "sha256-ArteHTNNUxgiBJamnR1bJFDrvNnqjbJ6D3mj1XlpVUA=", From f5ec40e3cf4d604d812d34ef6f3b963450d99615 Mon Sep 17 00:00:00 2001 From: hlad Date: Tue, 3 Jun 2025 20:20:23 +0200 Subject: [PATCH 121/146] audiobookshelf: 2.23.0 -> 2.24.0 --- pkgs/by-name/au/audiobookshelf/source.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/au/audiobookshelf/source.json b/pkgs/by-name/au/audiobookshelf/source.json index 84c31d3aac1d..4d0383a553f3 100644 --- a/pkgs/by-name/au/audiobookshelf/source.json +++ b/pkgs/by-name/au/audiobookshelf/source.json @@ -1,9 +1,9 @@ { "owner": "advplyr", "repo": "audiobookshelf", - "rev": "077273033657da2345494084dc7a1f399cc1a7ba", - "hash": "sha256-6ygJrB7AvOyRLgDrkz/qLXiJXP+0U7uhi1HqZP62+gU=", - "version": "2.23.0", - "depsHash": "sha256-3ANieZvWxLVDiIZ1oGSB3UQgApZvukXN5OokyUnFyzg=", - "clientDepsHash": "sha256-WiMQZwPFo5qTo4kTWZ+LuLKDEorediQ+GhUxAO+nRCc=" + "rev": "c377b57601f82f76d677b09e6bbabda732c18861", + "hash": "sha256-q0Qlslw5e1nHDqLfLi4AvD3vAzoWvz9/0/lMgqn+y8Y=", + "version": "2.24.0", + "depsHash": "sha256-s4U+Hgace+d+zRaHeJkxh6TWgClY6T+tlmoyZq7L7Rk=", + "clientDepsHash": "sha256-fAtr5GW8AInIDgSEjv1JwKW9GNZGYImD3LxerkUqH8k=" } From 4a06138baf0ad192b053f7315f5305a1349177c0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 3 Jun 2025 20:21:32 +0200 Subject: [PATCH 122/146] esphome: 2025.5.1 -> 2025.5.2 https://github.com/esphome/esphome/releases/tag/2025.5.2 --- pkgs/by-name/es/esphome/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/es/esphome/package.nix b/pkgs/by-name/es/esphome/package.nix index 3568e5a6bacd..da6e54c817bf 100644 --- a/pkgs/by-name/es/esphome/package.nix +++ b/pkgs/by-name/es/esphome/package.nix @@ -33,14 +33,14 @@ let in python.pkgs.buildPythonApplication rec { pname = "esphome"; - version = "2025.5.1"; + version = "2025.5.2"; pyproject = true; src = fetchFromGitHub { owner = "esphome"; repo = "esphome"; tag = version; - hash = "sha256-z4FwymWFjyqNx95r2o7LLCmytRQYkogfCKiUFNyGOuA="; + hash = "sha256-p4+OuBGS9OJxxiQ4xOO2WseUrw3yXWyCZn7jilnh06E="; }; build-systems = with python.pkgs; [ From 8b3b56a3e284d78474b53a4c60d361443c3556b4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 18:23:01 +0000 Subject: [PATCH 123/146] abctl: 0.25.0 -> 0.26.0 --- pkgs/by-name/ab/abctl/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ab/abctl/package.nix b/pkgs/by-name/ab/abctl/package.nix index 968206813bb0..ee6de98ba562 100644 --- a/pkgs/by-name/ab/abctl/package.nix +++ b/pkgs/by-name/ab/abctl/package.nix @@ -8,13 +8,13 @@ buildGoModule rec { pname = "abctl"; - version = "0.25.0"; + version = "0.26.0"; src = fetchFromGitHub { owner = "airbytehq"; repo = "abctl"; tag = "v${version}"; - hash = "sha256-ZM0ae4Oiz/q4KSkxVxEXPe6oJa5fsNWzw+fX5hobc1c="; + hash = "sha256-FbL9jfTg2wV203XwMTTDgkfjX4+J/aEagIHE/q4sYDs="; }; checkFlags = From 9c3b2e3c887acbb216a6f438ad1169bc5c282ca4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 2 Jun 2025 16:25:20 +0200 Subject: [PATCH 124/146] python312Packages.pytensor: 2.31.2 -> 2.31.3 Diff: https://github.com/pymc-devs/pytensor/compare/refs/tags/rel-2.31.2...rel-2.31.3 Changelog: https://github.com/pymc-devs/pytensor/releases/tag/rel-2.31.3 --- pkgs/development/python-modules/pytensor/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index 77edafdd0351..c1d7b0e494fb 100644 --- a/pkgs/development/python-modules/pytensor/default.nix +++ b/pkgs/development/python-modules/pytensor/default.nix @@ -33,7 +33,7 @@ buildPythonPackage rec { pname = "pytensor"; - version = "2.31.2"; + version = "2.31.3"; pyproject = true; src = fetchFromGitHub { @@ -43,7 +43,7 @@ buildPythonPackage rec { postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/pytensor/_version.py ''; - hash = "sha256-dFqJm9/77Nelh//1FjLauPAAQSogDa2fd1JJjlVFWsY="; + hash = "sha256-tvK8UzJZvX9X2NKgqkyhi0ZzAb38Lu0ULze4L1Z3YfU="; }; build-system = [ @@ -133,6 +133,7 @@ buildPythonPackage rec { "test_scan_err1" "test_scan_err2" "test_shared" + "test_size_implied_by_broadcasted_parameters" "test_solve_triangular_grad" "test_structured_add_s_v_grad" "test_structureddot_csc_grad" From 153da4f188004d5a6d94dbc8d76890a618886c2d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 18:57:18 +0000 Subject: [PATCH 125/146] smug: 0.3.6 -> 0.3.7 --- pkgs/by-name/sm/smug/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sm/smug/package.nix b/pkgs/by-name/sm/smug/package.nix index c7745d1a5cee..61aa2f4a9aa0 100644 --- a/pkgs/by-name/sm/smug/package.nix +++ b/pkgs/by-name/sm/smug/package.nix @@ -7,7 +7,7 @@ buildGoModule rec { pname = "smug"; - version = "0.3.6"; + version = "0.3.7"; subPackages = [ "." ]; @@ -15,7 +15,7 @@ buildGoModule rec { owner = "ivaaaan"; repo = "smug"; rev = "v${version}"; - sha256 = "sha256-9So81tZwQa3rQYgVO+KjOlTVIzlm/e2K5C/qULZeA7U="; + sha256 = "sha256-c4etBWF2NGyHtMLZNISMMjOswCFbbYtpsFuagMW8zeE="; }; vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU="; From 088b1968290a958598381ed32d6545f1e24ccc40 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 19:07:46 +0000 Subject: [PATCH 126/146] python3Packages.aiocomelit: 0.12.3 -> 1.0.0 --- pkgs/development/python-modules/aiocomelit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiocomelit/default.nix b/pkgs/development/python-modules/aiocomelit/default.nix index 1ff620b7c7fd..39b1f6deaa42 100644 --- a/pkgs/development/python-modules/aiocomelit/default.nix +++ b/pkgs/development/python-modules/aiocomelit/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "aiocomelit"; - version = "0.12.3"; + version = "1.0.0"; pyproject = true; disabled = pythonOlder "3.12"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "chemelli74"; repo = "aiocomelit"; tag = "v${version}"; - hash = "sha256-ZymhYx8uCb7kDcXGz0SQ3rN1ozFYRBtXhS1exMA/8yI="; + hash = "sha256-jne+epQQ3fvy1QqAnBcxdihd9/VJkLU5xoiT/WRTMh0="; }; build-system = [ poetry-core ]; From e2fcca7ae1483e214051dda096cc46b68532b6b1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 19:12:39 +0000 Subject: [PATCH 127/146] libretro.dosbox-pure: 0-unstable-2025-05-24 -> 0-unstable-2025-06-03 --- pkgs/applications/emulators/libretro/cores/dosbox-pure.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/libretro/cores/dosbox-pure.nix b/pkgs/applications/emulators/libretro/cores/dosbox-pure.nix index 33e8066ffb9f..95ddc703f354 100644 --- a/pkgs/applications/emulators/libretro/cores/dosbox-pure.nix +++ b/pkgs/applications/emulators/libretro/cores/dosbox-pure.nix @@ -5,13 +5,13 @@ }: mkLibretroCore { core = "dosbox-pure"; - version = "0-unstable-2025-05-24"; + version = "0-unstable-2025-06-03"; src = fetchFromGitHub { owner = "schellingb"; repo = "dosbox-pure"; - rev = "773f775cb8bd4a79e505413cbe7172ec5de948c1"; - hash = "sha256-SQjwQhy+/RI0159QMCk04G6AFtBKBushjNWtOXfohps="; + rev = "ee1ff009d8edf87c668bc5d1aa6d6f1320b8b654"; + hash = "sha256-3vIw73T47gTS2A9PBJuZGBNlDiXPNabsj4YopXLMMIY="; }; hardeningDisable = [ "format" ]; From 45a971c10b04a3776e1bec5562015121c71a4de9 Mon Sep 17 00:00:00 2001 From: Amadej Kastelic Date: Tue, 3 Jun 2025 21:25:19 +0200 Subject: [PATCH 128/146] =?UTF-8?q?magnetic-catppuccin-gtk:=200-unstable-2?= =?UTF-8?q?024-11-06=20=E2=86=92=200-unstable-2025-04-25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix b/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix index 7f2dcb4650cc..3e1c98457211 100644 --- a/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix +++ b/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix @@ -59,13 +59,13 @@ lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent lib.che stdenv.mkDerivation { pname = "magnetic-${lib.toLower pname}"; - version = "0-unstable-2024-11-06"; + version = "0-unstable-2025-04-25"; src = fetchFromGitHub { owner = "Fausto-Korpsvart"; repo = "Catppuccin-GTK-Theme"; - rev = "be79b8289200aa1a17620f84dde3fe4c3b9c5998"; - hash = "sha256-QItHmYZpe7BiPC+2CtFwiRXyMTG7+ex0sJTs63xmkAo="; + rev = "c961826d027ed93fae12a9a309616e36d140e6b9"; + hash = "sha256-7F4FrhM+kBFPeLp2mjmYkoDiF9iKDUkC27LUBuFyz7g="; }; nativeBuildInputs = [ From 5b77c89ebbabcd381af3b012cee32662c5fee7ee Mon Sep 17 00:00:00 2001 From: Amadej Kastelic Date: Tue, 3 Jun 2025 21:25:44 +0200 Subject: [PATCH 129/146] magnetic-catppuccin-gtk: remove usage of with lib; --- pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix b/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix index 3e1c98457211..b05514106395 100644 --- a/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix +++ b/pkgs/by-name/ma/magnetic-catppuccin-gtk/package.nix @@ -101,11 +101,11 @@ lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent lib.che runHook postInstall ''; - meta = with lib; { + meta = { description = "GTK Theme with Catppuccin colour scheme"; homepage = "https://github.com/Fausto-Korpsvart/Catppuccin-GTK-Theme"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ icy-thought ]; - platforms = platforms.all; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ icy-thought ]; + platforms = lib.platforms.all; }; } From 08d3f6944a3ce7b8a9b53e43d21a28bd28924a92 Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sat, 28 Dec 2024 13:39:18 -0800 Subject: [PATCH 130/146] albyhub: init at 1.17.1 --- .../al/albyhub/ldk-node-go/default.nix | 39 ++++++++ pkgs/by-name/al/albyhub/ldk-node/default.nix | 48 +++++++++ pkgs/by-name/al/albyhub/package.nix | 98 +++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 pkgs/by-name/al/albyhub/ldk-node-go/default.nix create mode 100644 pkgs/by-name/al/albyhub/ldk-node/default.nix create mode 100644 pkgs/by-name/al/albyhub/package.nix diff --git a/pkgs/by-name/al/albyhub/ldk-node-go/default.nix b/pkgs/by-name/al/albyhub/ldk-node-go/default.nix new file mode 100644 index 000000000000..e911017b7e5a --- /dev/null +++ b/pkgs/by-name/al/albyhub/ldk-node-go/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + ldkNode, +}: + +buildGoModule rec { + pname = "ldk-node-go"; + version = "0-unstable-2025-05-21"; + + src = fetchFromGitHub { + owner = "getAlby"; + repo = "ldk-node-go"; + rev = "ca26307fa2d8ee4d30da9affd0b202897f9919f6"; + hash = "sha256-UdsfN6UL9lKPQSCfF8oA89U0M3pqj/TcFcs01E7WoXs="; + }; + + vendorHash = null; + + ldflags = [ + "-s" + "-w" + ]; + + buildInputs = [ + ldkNode + ]; + + propagatedBuildInputs = [ ldkNode ]; + + meta = { + description = "Experimental Go bindings for LDK-node"; + homepage = "https://github.com/getAlby/ldk-node-go"; + license = lib.licenses.asl20; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ bleetube ]; + }; +} diff --git a/pkgs/by-name/al/albyhub/ldk-node/default.nix b/pkgs/by-name/al/albyhub/ldk-node/default.nix new file mode 100644 index 000000000000..99ea24923470 --- /dev/null +++ b/pkgs/by-name/al/albyhub/ldk-node/default.nix @@ -0,0 +1,48 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + cmake, + llvmPackages, +}: + +rustPlatform.buildRustPackage rec { + pname = "ldk-node"; + version = "0-unstable-2025-05-21"; + + src = fetchFromGitHub { + owner = "getAlby"; + repo = "ldk-node"; + rev = "9bb381ad38dbaa71e17816738789d993158fc1a2"; + hash = "sha256-Ie7FOSOd12mwmkEjD4r0p1ZmeYkXm5eN1LlQhWl0VG4="; + }; + + buildFeatures = [ "uniffi" ]; + + useFetchCargoVendor = true; + cargoHash = "sha256-hM6VCU0kIg5ZmJM8C4HoybSc/VXNj6GTE/oFLfqGMcY="; + + # Skip tests because they download bitcoin-core and electrs zip files, and then fail + doCheck = false; + + nativeBuildInputs = [ + cmake + llvmPackages.clang + rustPlatform.bindgenHook + ]; + + # Add CFLAGS to suppress the stringop-overflow error during aws-lc-sys compilation. + NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow"; + + meta = { + description = "Embeds the LDK node implementation compiled as shared library objects"; + homepage = "https://github.com/getAlby/ldk-node"; + changelog = "https://github.com/getAlby/ldk-node/blob/${src.rev}/CHANGELOG.md"; + license = with lib.licenses; [ + asl20 + mit + ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ bleetube ]; + }; +} diff --git a/pkgs/by-name/al/albyhub/package.nix b/pkgs/by-name/al/albyhub/package.nix new file mode 100644 index 000000000000..9a6af0077532 --- /dev/null +++ b/pkgs/by-name/al/albyhub/package.nix @@ -0,0 +1,98 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + fetchYarnDeps, + fixup-yarn-lock, + nodejs, + pkgs, + yarn, + stdenv, + makeWrapper, + callPackage, + go, +}: + +let + ldkNode = callPackage ./ldk-node { }; + ldkNodeGo = callPackage ./ldk-node-go { + inherit ldkNode; + }; + +in + +buildGoModule rec { + pname = "albyhub"; + version = "1.17.1"; + + src = fetchFromGitHub { + owner = "getAlby"; + repo = "hub"; + tag = "v${version}"; + hash = "sha256-ZDTCA3nMJEA8I7PeSgwQAe+wU8Wk0GaH3ItQLzPhOBQ="; + }; + + vendorHash = "sha256-4e75SqQiRUEEjtDZKDZsGSRavZFh5ulJdMz0Ne7gME0="; + proxyVendor = true; # needed for secp256k1-zkp CGO bindings + + nativeBuildInputs = [ + fixup-yarn-lock + nodejs + yarn + makeWrapper + ]; + + buildInputs = [ + ldkNodeGo + (lib.getLib stdenv.cc.cc) + ]; + + frontendYarnOfflineCache = fetchYarnDeps { + yarnLock = src + "/frontend/yarn.lock"; + hash = "sha256-SStTJGqeqPvXBKjFMPjKEts+jg6A9Vaqi+rZkr/ytdc="; + }; + + preBuild = '' + export HOME=$TMPDIR + pushd frontend + fixup-yarn-lock yarn.lock + yarn config set yarn-offline-mirror "${frontendYarnOfflineCache}" + yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive + patchShebangs node_modules + yarn --offline build:http + popd + ''; + + subPackages = [ + "cmd/http" + ]; + + ldflags = [ + "-X github.com/getAlby/hub/version.Tag=v${version}" + "-s" + "-w" + ]; + + postInstall = '' + mv $out/bin/http $out/bin/albyhub + ''; + + preFixup = '' + patchelf --set-rpath ${ + lib.makeLibraryPath [ + ldkNode + ldkNodeGo + (lib.getLib stdenv.cc.cc) + ] + } $out/bin/albyhub + ''; + + meta = { + description = "Control lightning wallets over nostr"; + homepage = "https://github.com/getAlby/hub"; + license = lib.licenses.asl20; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ bleetube ]; + mainProgram = "albyhub"; + }; +} From f416162e751013813ad0cf4f3418759a6122f00a Mon Sep 17 00:00:00 2001 From: Masum Reza <50095635+JohnRTitor@users.noreply.github.com> Date: Wed, 4 Jun 2025 01:23:27 +0530 Subject: [PATCH 131/146] Revert "nixos/graphical-desktop: add sessions to pathsToLink" (#413675) This reverts commit fbb577d3c5efd3e49bb85b6aa5e70c724a4f873e. This is already controlled by `services.displayManager.sessionPackages`, as explained in https://github.com/NixOS/nixpkgs/pull/411518#issuecomment-2936523214. Because of that PR, now xsessions and wayland session desktop files of every packages in `environment.systemPackages` are now being linked to `/run/current-system/sw/share`. This is highly unwanted behaviour. --- nixos/modules/services/misc/graphical-desktop.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nixos/modules/services/misc/graphical-desktop.nix b/nixos/modules/services/misc/graphical-desktop.nix index 42aa44dde0da..7f1e9b39210c 100644 --- a/nixos/modules/services/misc/graphical-desktop.nix +++ b/nixos/modules/services/misc/graphical-desktop.nix @@ -45,11 +45,6 @@ in nixos-icons # needed for gnome and pantheon about dialog, nixos-manual and maybe more xdg-utils ]; - # needed for some display managers to locate desktop manager sessions - pathsToLink = [ - "/share/xsessions" - "/share/wayland-sessions" - ]; }; fonts.enableDefaultPackages = lib.mkDefault true; From 0c330af623d043ad30eb732b2440111f774e9d86 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 19:54:05 +0000 Subject: [PATCH 132/146] vault-tasks: 0.11.1 -> 0.11.2 --- pkgs/by-name/va/vault-tasks/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/va/vault-tasks/package.nix b/pkgs/by-name/va/vault-tasks/package.nix index 711c88a01459..dc817ada9256 100644 --- a/pkgs/by-name/va/vault-tasks/package.nix +++ b/pkgs/by-name/va/vault-tasks/package.nix @@ -5,7 +5,7 @@ nix-update-script, }: let - version = "0.11.1"; + version = "0.11.2"; in rustPlatform.buildRustPackage { pname = "vault-tasks"; @@ -14,10 +14,10 @@ rustPlatform.buildRustPackage { owner = "louis-thevenet"; repo = "vault-tasks"; rev = "v${version}"; - hash = "sha256-7stFa2fLczGyoM/O2S/uKCfjSDyABUw/b3tXp7Olqq8="; + hash = "sha256-DcnOuQ37fzLVJOteP7ZiA9IxNAd6lH6zelaO5GCvakk="; }; useFetchCargoVendor = true; - cargoHash = "sha256-RSW0N0icKAZbh8KQNkI9TgcKwa6hTKjhaJWCGADtfq8="; + cargoHash = "sha256-/5CpIPdqIvxwiplMqXZ1J04oQoK9rnzDP1N7ffrbJDk="; postInstall = "install -Dm444 desktop/vault-tasks.desktop -t $out/share/applications"; From e32cdad1e8153475ce0157031dc32e32a2cd23e5 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 3 Jun 2025 13:05:50 -0700 Subject: [PATCH 133/146] tscli: init at 0.0.7 --- pkgs/by-name/ts/tscli/package.nix | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/ts/tscli/package.nix diff --git a/pkgs/by-name/ts/tscli/package.nix b/pkgs/by-name/ts/tscli/package.nix new file mode 100644 index 000000000000..7573a782e6c1 --- /dev/null +++ b/pkgs/by-name/ts/tscli/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenv, + buildGoModule, + fetchFromGitHub, + installShellFiles, +}: + +buildGoModule rec { + pname = "tscli"; + version = "0.0.7"; + + src = fetchFromGitHub { + owner = "jaxxstorm"; + repo = "tscli"; + tag = "v${version}"; + hash = "sha256-o08ynbx+Pclme+xS00jx7096D2jHnvJg28UISZayxKY="; + }; + + vendorHash = "sha256-+4PFwEib/8o+1mk5SOkIZkK7W1elIFToU1DI9P8s1Y8="; + + nativeBuildInputs = [ installShellFiles ]; + + ldflags = [ + "-X=github.com/jaxxstorm/tscli/pkg/version.Version=${version}" + ]; + + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd tscli \ + --bash <($out/bin/tscli -k XXX completion bash) \ + --fish <($out/bin/tscli -k XXX completion fish) \ + --zsh <($out/bin/tscli -k XXX completion zsh) + ''; + + meta = { + description = "A CLI tool to interact with the Tailscale API"; + homepage = "https://github.com/jaxxstorm/tscli"; + changelog = "https://github.com/jaxxstorm/tscli/releases/tag/${src.tag}/CHANGELOG.md"; + mainProgram = "tscli"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ philiptaron ]; + }; +} From 669ac214ede3e82af0722139f36cc858a48c872e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 20:29:08 +0000 Subject: [PATCH 134/146] conceal: 0.6.1 -> 0.6.2 --- pkgs/by-name/co/conceal/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/co/conceal/package.nix b/pkgs/by-name/co/conceal/package.nix index 866eb72c001c..8fa83ab69759 100644 --- a/pkgs/by-name/co/conceal/package.nix +++ b/pkgs/by-name/co/conceal/package.nix @@ -10,17 +10,17 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "conceal"; - version = "0.6.1"; + version = "0.6.2"; src = fetchFromGitHub { owner = "TD-Sky"; repo = "conceal"; tag = "v${finalAttrs.version}"; - hash = "sha256-kgJcxckXfwnKZ3MyJ+GE1LiQmu9YdfqFrtL9gBJ330E="; + hash = "sha256-B6vZ4Xl7H6KOlscys+FT8fMXb0Xrvosr2DXHzvRjLis="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Ym/HnUOLIKfCFWgusx92QeQYaNp9tfrhg5V1h02q3e0="; + cargoHash = "sha256-aBc9ijRObFi9AyQxSoQZs/3exAzOlYq5uNqFfvjNhvw="; env.CONCEAL_GEN_COMPLETIONS = "true"; From 269aef81ec218058b2d9e73be21ba726452cc7b0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 20:52:35 +0000 Subject: [PATCH 135/146] terraform-providers.spotinst: 1.220.0 -> 1.220.2 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index ae415610983a..78f6edd0cc0c 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1246,13 +1246,13 @@ "vendorHash": "sha256-oEamCseBGmETqeBLiBHfh81oQNUHWfTrsegkFijvb20=" }, "spotinst": { - "hash": "sha256-ip+HG6nPd4sYyKDzggR5cfwaQQZI/C9GzT+PvGDO3Dk=", + "hash": "sha256-opJqvsqGqsFz2G+5T2JK1tpDxnFmMCxRVrUNYYnuN7s=", "homepage": "https://registry.terraform.io/providers/spotinst/spotinst", "owner": "spotinst", "repo": "terraform-provider-spotinst", - "rev": "v1.220.0", + "rev": "v1.220.2", "spdx": "MPL-2.0", - "vendorHash": "sha256-w3Bg1FpMki8EhkVe1R8QWD91n8tooT+xIvlM50gbcSA=" + "vendorHash": "sha256-/UoLwkMCY4PsfNITOQBKWT9bKaReaIISqWyYiTS4/64=" }, "ssh": { "hash": "sha256-1UN5QJyjCuxs2vQYlSuz2jsu/HgGTxOoWWRcv4qcwow=", From a6b441a257eb0aa043c902a4f56832935b7712e1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 21:02:20 +0000 Subject: [PATCH 136/146] terraform-providers.equinix: 3.8.0 -> 3.9.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index ae415610983a..a661177d2a2e 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -426,11 +426,11 @@ "vendorHash": "sha256-oVTanZpCWs05HwyIKW2ajiBPz1HXOFzBAt5Us+EtTRw=" }, "equinix": { - "hash": "sha256-erQUWFpGqnxtU88AaD4Lq0OQyhOg0gXoFBMf6wQC1Fs=", + "hash": "sha256-1/cKun6sywQeNE7utWoXt84B3kAk5YOmFTjCatwHrqE=", "homepage": "https://registry.terraform.io/providers/equinix/equinix", "owner": "equinix", "repo": "terraform-provider-equinix", - "rev": "v3.8.0", + "rev": "v3.9.0", "spdx": "MIT", "vendorHash": "sha256-sjEgBLwk/dYUmq+kL0PtamEukXgC9rzeyTT87HK0Y8E=" }, From f4249b03a9e53a392b0106a3fce1e1f1346c899d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Tue, 3 Jun 2025 21:13:29 +0000 Subject: [PATCH 137/146] pocket-id: 1.1.0 -> 1.2.0 --- pkgs/by-name/po/pocket-id/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/po/pocket-id/package.nix b/pkgs/by-name/po/pocket-id/package.nix index abd96cd6c227..50728a63c42c 100644 --- a/pkgs/by-name/po/pocket-id/package.nix +++ b/pkgs/by-name/po/pocket-id/package.nix @@ -9,18 +9,18 @@ buildGoModule (finalAttrs: { pname = "pocket-id"; - version = "1.1.0"; + version = "1.2.0"; src = fetchFromGitHub { owner = "pocket-id"; repo = "pocket-id"; tag = "v${finalAttrs.version}"; - hash = "sha256-J/s8wpKAU7w8Djtd7rtamCzg/7176W0ybSoAB/vHOjs="; + hash = "sha256-LydP89zyqMGpWbC7nEAyPMx0ARDrYh4qL9sH1i8a88M="; }; sourceRoot = "${finalAttrs.src.name}/backend"; - vendorHash = "sha256-jLwuBYiFZhUDIvG5uk78vXmo+wuqkFmyC5lAUZ3vUxU="; + vendorHash = "sha256-U7FKU5WkU1EoXav+Q1i04uRSxBux/o4/9UzajT/hV/g="; env.CGO_ENABLED = 0; ldflags = [ @@ -42,7 +42,7 @@ buildGoModule (finalAttrs: { sourceRoot = "${finalAttrs.src.name}/frontend"; - npmDepsHash = "sha256-ykoyJtnqFK1fK60SbzrL7nhRcKYa3qYdHf9kFOC3EwE="; + npmDepsHash = "sha256-+KmNWKe5k/WuQL9B6XYZWDCLICyGWIg/vHLZr9T7SOc="; npmFlags = [ "--legacy-peer-deps" ]; env.BUILD_OUTPUT_PATH = "dist"; From 2c6220190840eaa8d8088d3b1dd433b241273fa6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 21:15:44 +0000 Subject: [PATCH 138/146] automatic-timezoned: 2.0.76 -> 2.0.79 --- pkgs/by-name/au/automatic-timezoned/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/au/automatic-timezoned/package.nix b/pkgs/by-name/au/automatic-timezoned/package.nix index 2e34bf2c7144..9229f6a43161 100644 --- a/pkgs/by-name/au/automatic-timezoned/package.nix +++ b/pkgs/by-name/au/automatic-timezoned/package.nix @@ -6,17 +6,17 @@ rustPlatform.buildRustPackage rec { pname = "automatic-timezoned"; - version = "2.0.76"; + version = "2.0.79"; src = fetchFromGitHub { owner = "maxbrunet"; repo = "automatic-timezoned"; rev = "v${version}"; - sha256 = "sha256-fObJL4AOVGW/b050kh0/zpAg/BLzLpgop70SgvGqW6E="; + sha256 = "sha256-FPSwTtLLf1T4lx4ZmPPa6dnhcI9pBCFjhsABeIccRKk="; }; useFetchCargoVendor = true; - cargoHash = "sha256-msoYCTrBgq4xdQiKRvyyQ5seWceyRBM7StFvJ/8MDJ4="; + cargoHash = "sha256-H4bFSqt8hOH6tF2WO1mQqqmbK9U2qlFC+7swz/xj1I8="; meta = with lib; { description = "Automatically update system timezone based on location"; From 259a75fb1fffd1ce6213ae32c2cfdf586ca405eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Mon, 2 Jun 2025 01:20:23 +0200 Subject: [PATCH 139/146] nixos/pocket-id: harden after backend-frontend merge --- nixos/modules/services/security/pocket-id.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/security/pocket-id.nix b/nixos/modules/services/security/pocket-id.nix index 62259a7959a4..c3a93869dd1e 100644 --- a/nixos/modules/services/security/pocket-id.nix +++ b/nixos/modules/services/security/pocket-id.nix @@ -174,12 +174,12 @@ in CapabilityBoundingSet = ""; DeviceAllow = ""; DevicePolicy = "closed"; - #IPAddressDeny = "any"; # communicates with the frontend + #IPAddressDeny = "any"; # provides the service through network LockPersonality = true; MemoryDenyWriteExecute = true; NoNewPrivileges = true; PrivateDevices = true; - PrivateNetwork = false; # communicates with the frontend + PrivateNetwork = false; # provides the service through network PrivateTmp = true; PrivateUsers = true; ProcSubset = "pid"; @@ -191,7 +191,8 @@ in ProtectKernelModules = true; ProtectKernelTunables = true; ProtectProc = "invisible"; - ProtectSystem = "full"; # needs to write in cfg.dataDir + ProtectSystem = "strict"; + ReadWritePaths = [ cfg.dataDir ]; RemoveIPC = true; RestrictAddressFamilies = [ "AF_INET" @@ -212,7 +213,7 @@ in "@privileged" "@raw-io" "@reboot" - #"@resources" # vm test segfaults + "@resources" "@swap" ]; UMask = "0077"; From ac1d175cbcb50dd881f3f5e2b36c13cf89a8bcbe Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 21:47:56 +0000 Subject: [PATCH 140/146] tpnote: 1.25.10 -> 1.25.11 --- pkgs/by-name/tp/tpnote/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/tp/tpnote/package.nix b/pkgs/by-name/tp/tpnote/package.nix index 42f1ef23c9a9..b731a3bab140 100644 --- a/pkgs/by-name/tp/tpnote/package.nix +++ b/pkgs/by-name/tp/tpnote/package.nix @@ -12,17 +12,17 @@ rustPlatform.buildRustPackage rec { pname = "tpnote"; - version = "1.25.10"; + version = "1.25.11"; src = fetchFromGitHub { owner = "getreu"; repo = "tp-note"; tag = "v${version}"; - hash = "sha256-bQGgpO820eCp3J1cwOXfTA61PTekjdRc891L3UyokTk="; + hash = "sha256-5YqOOHz4L+kho+08mYQSjcm1SFDeAas+xNaMhuY7H4s="; }; useFetchCargoVendor = true; - cargoHash = "sha256-LTNYnETMO/jeByWWsEazfP8nsHaJ6aVeqCVCwtxiQfQ="; + cargoHash = "sha256-qYQ6MJQfffiqXyvjZAl1qjbMZYeEw3Dt4uKlaKoh+vQ="; nativeBuildInputs = [ cmake From faa82381b6ae3289be082394d18cda5acde8413e Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 3 Jun 2025 00:11:09 +0200 Subject: [PATCH 141/146] mediaelch: fix qt6.9 build --- pkgs/applications/misc/mediaelch/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/misc/mediaelch/default.nix b/pkgs/applications/misc/mediaelch/default.nix index d815c354f8e6..ab3efadfe3c7 100644 --- a/pkgs/applications/misc/mediaelch/default.nix +++ b/pkgs/applications/misc/mediaelch/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, qttools, @@ -57,6 +58,14 @@ stdenv.mkDerivation rec { qt5compat ]; + patches = [ + # fix from: https://github.com/Komet/MediaElch/pull/1878 + (fetchpatch { + url = "https://github.com/Komet/MediaElch/commit/dbea12fbf2c1fe603819392aa2a181cffa168548.patch"; + hash = "sha256-Lv6rvjKbRNr5XrdZhPyw4S4RRCOnfAGhWgcSLo0gqS8="; + }) + ]; + cmakeFlags = [ "-DDISABLE_UPDATER=ON" "-DUSE_EXTERN_QUAZIP=ON" From f8718e792285b3aa16696caf59265a7790f90302 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 3 Jun 2025 22:32:15 +0000 Subject: [PATCH 142/146] ghostfolio: 2.162.0 -> 2.165.0 --- pkgs/by-name/gh/ghostfolio/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gh/ghostfolio/package.nix b/pkgs/by-name/gh/ghostfolio/package.nix index fd4951c0a97a..79d23db32cc8 100644 --- a/pkgs/by-name/gh/ghostfolio/package.nix +++ b/pkgs/by-name/gh/ghostfolio/package.nix @@ -11,13 +11,13 @@ buildNpmPackage rec { pname = "ghostfolio"; - version = "2.162.0"; + version = "2.165.0"; src = fetchFromGitHub { owner = "ghostfolio"; repo = "ghostfolio"; tag = version; - hash = "sha256-2j7haypj1Bl0T0ppBCo+KDaMup+1dOuI2xouaJuVtec="; + hash = "sha256-3pgYRwTsfHbooW1oEw2LTH1DXYrru7F7XPmWPQs1x0o="; # populate values that require us to use git. By doing this in postFetch we # can delete .git afterwards and maintain better reproducibility of the src. leaveDotGit = true; @@ -27,7 +27,7 @@ buildNpmPackage rec { ''; }; - npmDepsHash = "sha256-IYHV7PEyfkGtwpROHITulqBEC6NgA5CumIykKtoamU8="; + npmDepsHash = "sha256-x/F9fcQBmK6+xL0N38HIBUi+vkvZ3p8rxxqxpnm7p68="; nativeBuildInputs = [ prisma From 14ec05570d5336bde2bad5ae56416cbb3ef39850 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 4 Jun 2025 09:15:39 +1000 Subject: [PATCH 143/146] mergiraf: 0.8.1 -> 0.10.0 (#413571) https://codeberg.org/mergiraf/mergiraf/releases/tag/v0.9.0 https://codeberg.org/mergiraf/mergiraf/releases/tag/v0.10.0 --- pkgs/by-name/me/mergiraf/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/me/mergiraf/package.nix b/pkgs/by-name/me/mergiraf/package.nix index 3642d9f256e3..64df812e3231 100644 --- a/pkgs/by-name/me/mergiraf/package.nix +++ b/pkgs/by-name/me/mergiraf/package.nix @@ -11,18 +11,18 @@ rustPlatform.buildRustPackage rec { pname = "mergiraf"; - version = "0.8.1"; + version = "0.10.0"; src = fetchFromGitea { domain = "codeberg.org"; owner = "mergiraf"; repo = "mergiraf"; rev = "refs/tags/v${version}"; - hash = "sha256-HtIrl9q64JLV/ufJ2g9OrQDDOkcwvyn4+l6/dUqwXkw="; + hash = "sha256-wnXOl7KzSvvxQP4CebOJ+fEIn7fQDKTmO2PkGMRA4t4="; }; useFetchCargoVendor = true; - cargoHash = "sha256-xe+JbXKOfxj0XSUM3zW0cYkWo22nyTOp+mOudv3UbE4="; + cargoHash = "sha256-jShWfd3m9g6YlUFLOzlMPFtuXAAfjh+sBujCJ9F2Uj0="; nativeCheckInputs = [ git From e81e6ddb2ca673d2522b99eb03a32f21eed99146 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 29 May 2025 17:57:33 +0000 Subject: [PATCH 144/146] terraform-providers.cloudflare: 5.4.0 -> 5.5.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index a5b0ef26ff12..a6de3c7d767b 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -261,13 +261,13 @@ "vendorHash": "sha256-f6sqKzoQAUpCDrpQdMuK1SuLTKrd2PUn/J6VuKxXGZI=" }, "cloudflare": { - "hash": "sha256-LghaF/2lc8EqTDL0s7pGnF4C/4Vx3GjGzOyg9Fl2LbE=", + "hash": "sha256-REHAEG7Ux+Twv0kA13NQpthBdb+LulYm0McquE6gL14=", "homepage": "https://registry.terraform.io/providers/cloudflare/cloudflare", "owner": "cloudflare", "repo": "terraform-provider-cloudflare", - "rev": "v5.4.0", + "rev": "v5.5.0", "spdx": "Apache-2.0", - "vendorHash": "sha256-C8KtuuNa2N0u1hTfYFhD/H/MwXS8iIx0gXwEo9BLI+Q=" + "vendorHash": "sha256-PRzjEL+6XIacWmO4jmCOMsbPF+R3l1VMeUKUR7vPMmQ=" }, "cloudfoundry": { "hash": "sha256-1nYncJLVU/f9WD6Quh9IieIXgixPzbPk4zbtI1zmf9g=", From 38f42f21d4d67b0efdaf5ee5835774b6d6042985 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 30 May 2025 02:59:33 +0000 Subject: [PATCH 145/146] terraform-providers.vault: 4.8.0 -> 5.0.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index a6de3c7d767b..4b1f67ed2b26 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1409,13 +1409,13 @@ "vendorHash": "sha256-giqZi1CmuyANNwzW+y9BUUUEfBhFZKkVGAvIPVvZnzE=" }, "vault": { - "hash": "sha256-6gCpXzvF4p2otwo3dJ8c+EvzbsMZfzVZymb41+hEZoM=", + "hash": "sha256-Vqnmw69fktBQhSkj/W0legJ4sHOQP9Moqqi6Z5qYFy4=", "homepage": "https://registry.terraform.io/providers/hashicorp/vault", "owner": "hashicorp", "repo": "terraform-provider-vault", - "rev": "v4.8.0", + "rev": "v5.0.0", "spdx": "MPL-2.0", - "vendorHash": "sha256-5e6WQ0lByT3BWcuJvG/LYRVeiiIYQDkV4A74CJhiUBA=" + "vendorHash": "sha256-6gWw4ypQZWPX7VC9cZxHiU/KhTYEdMTZ276B9neGAiI=" }, "vcd": { "hash": "sha256-W+ffIT70IaePg3xfOaQgCjPTWTN3iSAYwkf+s+zkB84=", From ddca576c7de9a00ade93e662a5064244e2a52c1d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 30 May 2025 05:55:21 +0000 Subject: [PATCH 146/146] terraform-providers.kubernetes: 2.36.0 -> 2.37.1 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 4b1f67ed2b26..9e06a46dcd94 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -732,13 +732,13 @@ "vendorHash": "sha256-FcxAh8EOvnT8r1GHu0Oj2C5Jgbr2WPwD7/vY4/qIvTA=" }, "kubernetes": { - "hash": "sha256-4ghGJ3yf17PI498bqLFtKHnx7axNMaf4BHUPQqyjvVk=", + "hash": "sha256-JUlthPqYTYlsKyPAjyN9N0A0i8aMJh3tAtwH1vHjzJs=", "homepage": "https://registry.terraform.io/providers/hashicorp/kubernetes", "owner": "hashicorp", "repo": "terraform-provider-kubernetes", - "rev": "v2.36.0", + "rev": "v2.37.1", "spdx": "MPL-2.0", - "vendorHash": "sha256-slDHNiH5CTfzzj1y2BOt8JuL2iBS1irSZBIiP/4QDLE=" + "vendorHash": "sha256-LeMFN4pOJotTTqakEbVelHSTEb4p7CQIuKzeuX3SZUM=" }, "launchdarkly": { "hash": "sha256-VL0nijqk61EBKLEHW54a3dH/PE5B+9VRoGJ36TJj7ps=",