nixpkgs/pkgs/applications/misc/chatblade/default.nix

48 lines
914 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchPypi }:
2023-04-05 14:49:17 +03:00
python3Packages.buildPythonApplication rec {
pname = "chatblade";
2023-09-03 09:05:12 +03:00
version = "0.3.1";
2023-04-05 14:49:17 +03:00
format = "setuptools";
src = fetchPypi {
2023-04-05 14:49:17 +03:00
inherit pname version;
2023-09-03 09:05:12 +03:00
sha256 = "sha256-QBURvPfDBbhF+AhQ0SsHYnZzr5RN36Cqa2DrAQZW0gU=";
2023-04-05 14:49:17 +03: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";
license = licenses.gpl3Only;
maintainers = with maintainers; [ deejayem ];
};
}