2023-05-25 16:07:31 +02:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2023-04-05 13:49:17 +02:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "chatblade";
|
2024-03-13 16:21:49 +01:00
|
|
|
version = "0.4.0";
|
2023-04-05 13:49:17 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-05-25 16:07:31 +02:00
|
|
|
src = fetchPypi {
|
2023-04-05 13:49:17 +02:00
|
|
|
inherit pname version;
|
2024-03-13 16:21:49 +01:00
|
|
|
sha256 = "sha256-AjE+1MkSkZOtEUPKEPBKQ3n+aOB8cwsorBpL5skNskU=";
|
2023-04-05 13:49:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "chatblade" ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiohttp
|
|
|
|
aiosignal
|
|
|
|
async-timeout
|
|
|
|
attrs
|
|
|
|
certifi
|
|
|
|
charset-normalizer
|
|
|
|
frozenlist
|
|
|
|
idna
|
|
|
|
markdown-it-py
|
|
|
|
mdurl
|
|
|
|
multidict
|
|
|
|
openai
|
|
|
|
platformdirs
|
|
|
|
pygments
|
|
|
|
pyyaml
|
|
|
|
regex
|
|
|
|
requests
|
|
|
|
rich
|
|
|
|
tiktoken
|
|
|
|
tqdm
|
|
|
|
urllib3
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/npiv/chatblade/";
|
|
|
|
description = "A CLI Swiss Army Knife for ChatGPT";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "chatblade";
|
2023-04-05 13:49:17 +02:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ deejayem ];
|
|
|
|
};
|
|
|
|
}
|