hi all, and if I want to install python libraries declaratively, and not via pip, how can I do it? all I could do so far is:
vscode = {
enable = true;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
ms-vscode.cpptools
ms-vscode.cpptools-extension-pack
ms-vscode.cmake-tools
github.copilot
github.copilot-chat
ms-python.python
ms-python.debugpy
];
userSettings = {
python.formatting.blackPath = "${pkgs.black}/bin/black";
python.defaultInterpreterPath = "${pkgs.python3Full}/bin/python";
terminal.integrated.shell.linux = "${pkgs.zsh}/bin/zsh";
};
};
set the default interpreter to the one I need and install libraries like this:
(pkgs.python3Full.withPackages (python-pkgs:
with python-pkgs; [
# select Python packages here
pandas
numpy
lxml
scapy
dbus-python
requests
]))
but this seems to be limited to the nixpkgs repository