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