nixpkgs/pkgs/applications/misc/chatblade/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
945 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "chatblade";
version = "0.4.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-AjE+1MkSkZOtEUPKEPBKQ3n+aOB8cwsorBpL5skNskU=";
};
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";
mainProgram = "chatblade";
license = licenses.gpl3Only;
maintainers = with maintainers; [ deejayem ];
};
}