2023-02-23 13:39:01 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 18:37:59 +00:00
|
|
|
, fetchPypi
|
2023-02-23 13:39:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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;
|
2023-02-23 13:39:01 +00:00
|
|
|
|
2023-03-03 13:02:21 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "shell_genie";
|
|
|
|
inherit version;
|
2023-05-19 02:38:34 +00:00
|
|
|
hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8=";
|
2023-02-23 13:39:01 +00:00
|
|
|
};
|
|
|
|
|
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 = [
|
2023-02-23 13:39:01 +00:00
|
|
|
poetry-core
|
2024-04-14 20:30:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-06-10 22:07:07 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-02-23 13:39:01 +00:00
|
|
|
];
|
|
|
|
|
2024-04-14 20:30:33 +00:00
|
|
|
dependencies = [
|
2023-02-23 13:39:01 +00:00
|
|
|
colorama
|
|
|
|
openai
|
|
|
|
pyperclip
|
|
|
|
rich
|
|
|
|
shellingham
|
|
|
|
typer
|
2023-03-13 21:47:35 +00:00
|
|
|
] ++ typer.optional-dependencies.all;
|
2023-02-23 13:39:01 +00:00
|
|
|
|
|
|
|
# No tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-03-03 13:02:21 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"shell_genie"
|
|
|
|
];
|
|
|
|
|
2023-02-23 13:39:01 +00:00
|
|
|
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;
|
2023-02-23 13:39:01 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2024-04-14 20:30:33 +00:00
|
|
|
mainProgram = "shell-genie";
|
2023-02-23 13:39:01 +00:00
|
|
|
};
|
|
|
|
}
|