2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "chatblade";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.4";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-04-29 16:46:19 +00:00
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-d8XavZBuWsuIUxraC2XaWM6tgo2JmsPZwzyl9Rj5wWM=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "chatblade" ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
openai
|
|
|
|
platformdirs
|
2024-09-19 14:19:46 +00:00
|
|
|
pylatexenc
|
2023-04-29 16:46:19 +00:00
|
|
|
pyyaml
|
|
|
|
rich
|
|
|
|
tiktoken
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/npiv/chatblade/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CLI Swiss Army Knife for ChatGPT";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "chatblade";
|
2023-04-29 16:46:19 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ deejayem ];
|
|
|
|
};
|
|
|
|
}
|