nixpkgs/pkgs/applications/misc/shell-genie/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
927 B
Nix
Raw Normal View History

{ lib
, python3
2023-05-25 18:37:59 +00:00
, fetchPypi
}:
with python3.pkgs;
buildPythonPackage rec {
pname = "shell-genie";
2023-05-19 02:38:34 +00:00
version = "0.2.10";
2024-02-11 11:19:21 +00:00
pyproject = true;
src = fetchPypi {
pname = "shell_genie";
inherit version;
2023-05-19 02:38:34 +00:00
hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8=";
};
2023-06-10 22:07:07 +00:00
pythonRelaxDeps = [
2024-02-11 11:19:21 +00:00
"openai"
2023-06-10 22:07:07 +00:00
"typer"
];
2024-04-14 20:30:33 +00:00
build-system = [
poetry-core
2024-04-14 20:30:33 +00:00
];
nativeBuildInputs = [
2023-06-10 22:07:07 +00:00
pythonRelaxDepsHook
];
2024-04-14 20:30:33 +00:00
dependencies = [
colorama
openai
pyperclip
rich
shellingham
typer
2023-03-13 21:47:35 +00:00
] ++ typer.optional-dependencies.all;
# No tests available
doCheck = false;
pythonImportsCheck = [
"shell_genie"
];
meta = with lib; {
description = "Describe your shell commands in natural language";
homepage = "https://github.com/dylanjcastillo/shell-genie";
2023-03-09 08:38:05 +00:00
license = licenses.mit;
maintainers = with maintainers; [ onny ];
2024-04-14 20:30:33 +00:00
mainProgram = "shell-genie";
};
}