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 20:37:59 +02:00
, fetchPypi
}:
with python3.pkgs;
buildPythonPackage rec {
pname = "shell-genie";
2023-05-19 04:38:34 +02:00
version = "0.2.10";
2024-02-11 12:19:21 +01:00
pyproject = true;
src = fetchPypi {
pname = "shell_genie";
inherit version;
2023-05-19 04:38:34 +02:00
hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8=";
};
2023-06-11 00:07:07 +02:00
pythonRelaxDeps = [
2024-02-11 12:19:21 +01:00
"openai"
2023-06-11 00:07:07 +02:00
"typer"
];
2024-04-14 22:30:33 +02:00
build-system = [
poetry-core
2024-04-14 22:30:33 +02:00
];
nativeBuildInputs = [
2023-06-11 00:07:07 +02:00
pythonRelaxDepsHook
];
2024-04-14 22:30:33 +02:00
dependencies = [
colorama
openai
pyperclip
rich
shellingham
typer
2023-03-13 22:47:35 +01: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 09:38:05 +01:00
license = licenses.mit;
maintainers = with maintainers; [ onny ];
2024-04-14 22:30:33 +02:00
mainProgram = "shell-genie";
};
}