depot/third_party/nixpkgs/pkgs/applications/misc/shell-genie/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

47 lines
848 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";
# https://github.com/dylanjcastillo/shell-genie/issues/3
license = licenses.unfree;
maintainers = with maintainers; [ onny ];
};
}