mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
46 lines
928 B
Nix
46 lines
928 B
Nix
{ lib
|
|
, python3
|
|
, nix-update-script
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "shell_gpt";
|
|
version = "0.9.0";
|
|
format = "pyproject";
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-KzW9yI1TGG2hFKeXHFqqYCLw/PB9+lJoTgyWrXxCHpo=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
python3.pkgs.pythonRelaxDepsHook
|
|
python3
|
|
pip
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
markdown-it-py
|
|
rich
|
|
distro
|
|
typer
|
|
requests
|
|
hatchling
|
|
];
|
|
|
|
pythonRelaxDeps = [ "requests" "rich" "distro" "typer" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
mainProgram = "sgpt";
|
|
homepage = "https://github.com/TheR1D/shell_gpt";
|
|
description = "Access ChatGPT from your terminal";
|
|
platforms = platforms.unix;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mglolenstine ];
|
|
};
|
|
}
|