aboutsummaryrefslogtreecommitdiff
path: root/pkgs/llmPython
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-21 07:31:45 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-21 08:13:11 -0700
commit23f8df7396d35744069a4bda0d1d38a55ff64b79 (patch)
tree772b5e72355e9ee5b3ae31aef37fe1d4508e8f30 /pkgs/llmPython
parentadd docker helpers and clean up some dependencies (diff)
downloadinfra-23f8df7396d35744069a4bda0d1d38a55ff64b79.tar.gz
refactoring to use flake-parts and automatic imports of hosts
This is the first step in a large refactoring to use flake-parts, and to automatically imports hosts based on paths.
Diffstat (limited to 'pkgs/llmPython')
-rw-r--r--pkgs/llmPython/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/llmPython/default.nix b/pkgs/llmPython/default.nix
index 0f53218..b62bcb4 100644
--- a/pkgs/llmPython/default.nix
+++ b/pkgs/llmPython/default.nix
@@ -1,24 +1,23 @@
{
pkgs,
- pkgsUnstable,
lib,
...
}:
let
# Define all packages in a recursive attribute set
pythonPackages = rec {
- llm = pkgsUnstable.python3.pkgs.buildPythonPackage rec {
+ llm = pkgs.python3.pkgs.buildPythonPackage rec {
pname = "llm";
version = "0.24.2";
format = "setuptools";
- src = pkgsUnstable.fetchurl {
+ src = pkgs.fetchurl {
url = "https://files.pythonhosted.org/packages/source/l/llm/llm-0.24.2.tar.gz";
sha256 = "sha256-4U8nIhg4hM4JaSIBtUzdlhlCSS8Nk8p0mmLQKzuL9Do=";
};
# Dependencies
- propagatedBuildInputs = with pkgsUnstable.python3.pkgs; [
+ propagatedBuildInputs = with pkgs.python3.pkgs; [
pyyaml
click
click-default-group
@@ -48,7 +47,7 @@ let
};
# Note, these are available in nixpkgs unstable, but are still behind the latest versions
- llm-anthropic = pkgsUnstable.python3.pkgs.buildPythonPackage rec {
+ llm-anthropic = pkgs.python3.pkgs.buildPythonPackage rec {
pname = "llm-anthropic";
version = "0.15.1";
format = "pyproject";
@@ -58,12 +57,12 @@ let
sha256 = "sha256-C8xNs4oS51YxAn1iJkk8j4sJ5dO0pVOwIiP4mv/MnQk=";
};
- nativeBuildInputs = with pkgsUnstable.python3.pkgs; [
+ nativeBuildInputs = with pkgs.python3.pkgs; [
setuptools
wheel
];
# Dependencies
- propagatedBuildInputs = with pkgsUnstable.python3.pkgs; [
+ propagatedBuildInputs = with pkgs.python3.pkgs; [
anthropic
llm # Use the llm we defined above
];