Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 821 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "chatblade"; 9 version = "0.7.0"; 10 format = "pyproject"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-v6X5aqArhp33bm8JELDCUoxE3nsvla4I3n0ZLLMMeJI="; 15 }; 16 17 doCheck = false; # there are no tests 18 19 pythonImportsCheck = [ "chatblade" ]; 20 21 build-system = with python3Packages; [ 22 setuptools 23 ]; 24 25 pythonRelaxDeps = true; 26 27 dependencies = with python3Packages; [ 28 openai 29 platformdirs 30 pylatexenc 31 pyyaml 32 rich 33 tiktoken 34 ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/npiv/chatblade/"; 38 description = "CLI Swiss Army Knife for ChatGPT"; 39 mainProgram = "chatblade"; 40 license = licenses.gpl3Only; 41 maintainers = with maintainers; [ deejayem ]; 42 }; 43}