toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / sh / shell-gpt / package.nix
blob85f70a6dfe8b6f9f2ab5172ce4f62a659cad0a2e
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "shell-gpt";
9   version = "1.4.4";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "TheR1D";
14     repo = "shell_gpt";
15     rev = "refs/tags/${version}";
16     hash = "sha256-4/5CLzIq+RXVTJk4chrd65GeazRp8VFKdOMt3fT+mbI=";
17   };
19   pythonRelaxDeps = [
20     "requests"
21     "rich"
22     "distro"
23     "typer"
24     "instructor"
25   ];
27   build-system = with python3.pkgs; [ hatchling ];
29   propagatedBuildInputs = with python3.pkgs; [
30     click
31     distro
32     instructor
33     openai
34     rich
35     typer
36   ];
38   # Tests want to read the OpenAI API key from stdin
39   doCheck = false;
41   meta = with lib; {
42     description = "Access ChatGPT from your terminal";
43     homepage = "https://github.com/TheR1D/shell_gpt";
44     changelog = "https://github.com/TheR1D/shell_gpt/releases/tag/${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ mglolenstine ];
47     mainProgram = "sgpt";
48   };