2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2023-04-05 11:49:17 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "chatblade";
|
2024-10-27 06:05:45 +00:00
|
|
|
version = "0.7.0";
|
2023-04-05 11:49:17 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2023-04-05 11:49:17 +00:00
|
|
|
inherit pname version;
|
2024-10-27 06:05:45 +00:00
|
|
|
hash = "sha256-v6X5aqArhp33bm8JELDCUoxE3nsvla4I3n0ZLLMMeJI=";
|
2023-04-05 11:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "chatblade" ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
openai
|
|
|
|
platformdirs
|
2024-08-15 11:07:02 +00:00
|
|
|
pylatexenc
|
2023-04-05 11:49:17 +00:00
|
|
|
pyyaml
|
|
|
|
rich
|
|
|
|
tiktoken
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/npiv/chatblade/";
|
|
|
|
description = "CLI Swiss Army Knife for ChatGPT";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "chatblade";
|
2023-04-05 11:49:17 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ deejayem ];
|
|
|
|
};
|
|
|
|
}
|