2 , buildPythonApplication
13 llm = buildPythonPackage rec {
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-Nq6pduzl8IK+nA3pctst/W4ux7+P6mBFTEHMF+vtBQw=";
28 ./001-disable-install-uninstall-commands.patch
35 propagatedBuildInputs = with python3.pkgs; [
44 setuptools # for pkg_resources
49 nativeCheckInputs = with python3.pkgs; [
63 pythonImportsCheck = [
67 passthru = {inherit withPlugins;};
70 homepage = "https://github.com/simonw/llm";
71 description = "Access large language models from the command-line";
72 changelog = "https://github.com/simonw/llm/releases/tag/${version}";
73 license = licenses.asl20;
75 maintainers = with maintainers; [aldoborrero];
79 withPlugins = plugins: buildPythonApplication {
80 inherit (llm) pname version;
83 disabled = pythonOlder "3.8";
94 makeWrapper ${llm}/bin/llm $out/bin/llm \
95 --prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH"
96 ln -sfv ${llm}/lib $out/lib
99 propagatedBuildInputs = llm.propagatedBuildInputs ++ plugins;
101 passthru = llm.passthru // {
102 withPlugins = morePlugins: withPlugins (morePlugins ++ plugins);