nixpkgs/pkgs/applications/misc/shell-genie/default.nix
2023-03-09 09:38:05 +01:00

47 lines
784 B
Nix

{ lib
, python3
, fetchFromGitHub
, poetry
}:
with python3.pkgs;
buildPythonPackage rec {
pname = "shell-genie";
version = "0.2.6";
format = "pyproject";
src = fetchPypi {
pname = "shell_genie";
inherit version;
hash = "sha256-MgQFHsBXrihfWBB/cz45ITf8oJG2gSenf1wzdbrAbjw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
colorama
openai
pyperclip
rich
shellingham
typer
];
# 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";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}