nixpkgs/pkgs/applications/misc/chatblade/default.nix
2024-09-03 22:45:42 +00:00

33 lines
734 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "chatblade";
version = "0.6.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-d8XavZBuWsuIUxraC2XaWM6tgo2JmsPZwzyl9Rj5wWM=";
};
doCheck = false; # there are no tests
pythonImportsCheck = [ "chatblade" ];
propagatedBuildInputs = with python3Packages; [
openai
platformdirs
pylatexenc
pyyaml
rich
tiktoken
];
meta = with lib; {
homepage = "https://github.com/npiv/chatblade/";
description = "CLI Swiss Army Knife for ChatGPT";
mainProgram = "chatblade";
license = licenses.gpl3Only;
maintainers = with maintainers; [ deejayem ];
};
}