oizys/pkgs/llm/llm-anthropic/default.nix

40 lines
470 B
Nix
Raw Normal View History

{
version,
hash,
}:
2024-08-08 13:53:51 -05:00
{
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
wheel,
# deps
anthropic,
...
}:
buildPythonPackage {
inherit version;
2025-02-06 00:24:45 -06:00
pname = "llm-anthropic";
2024-08-08 13:53:51 -05:00
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
2025-02-06 00:24:45 -06:00
repo = "llm-anthropic";
2024-08-08 13:53:51 -05:00
rev = version;
inherit hash;
2024-08-08 13:53:51 -05:00
};
nativeBuildInputs = [
setuptools
wheel
];
dependencies = [ anthropic ];
dontCheckRuntimeDeps = true;
}