2023-02-23 13:39:01 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry
|
|
|
|
}:
|
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shell-genie";
|
2023-03-03 13:02:21 +00:00
|
|
|
version = "0.2.6";
|
2023-02-23 13:39:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-03-03 13:02:21 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "shell_genie";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-MgQFHsBXrihfWBB/cz45ITf8oJG2gSenf1wzdbrAbjw=";
|
2023-02-23 13:39:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorama
|
|
|
|
openai
|
|
|
|
pyperclip
|
|
|
|
rich
|
|
|
|
shellingham
|
|
|
|
typer
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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-03 13:02:21 +00:00
|
|
|
# https://github.com/dylanjcastillo/shell-genie/issues/3
|
2023-02-23 13:39:01 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|