btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / sh / shell-genie / package.nix
blob60b3ce9548ce8b9de87567f294a16d80266e88c7
1 { lib
2 , python3
3 , fetchPypi
4 }:
6 with python3.pkgs;
8 buildPythonPackage rec {
9   pname = "shell-genie";
10   version = "0.2.10";
11   pyproject = true;
13   src = fetchPypi {
14     pname = "shell_genie";
15     inherit version;
16     hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8=";
17   };
19   pythonRelaxDeps = [
20     "openai"
21     "typer"
22   ];
24   build-system = [
25     poetry-core
26   ];
28   dependencies = [
29     colorama
30     openai
31     pyperclip
32     rich
33     shellingham
34     typer
35   ];
37   # No tests available
38   doCheck = false;
40   pythonImportsCheck = [
41     "shell_genie"
42   ];
44   meta = with lib; {
45     description = "Describe your shell commands in natural language";
46     homepage = "https://github.com/dylanjcastillo/shell-genie";
47     license = licenses.mit;
48     maintainers = with maintainers; [ onny ];
49     mainProgram = "shell-genie";
50   };