2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "chatblade";
|
|
|
|
version = "0.2.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-04-29 16:46:19 +00:00
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-YXZeqIX8cxNDvM4Pn0or6Lqj2ffX9aQb3b/xMIeBHRk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ deejayem ];
|
|
|
|
};
|
|
|
|
}
|