2023-07-10 17:52:34 -07:00
|
|
|
# python with all the venom
|
|
|
|
|
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.modules.devel.python;
|
|
|
|
my-python-packages = ps: with ps; [
|
2024-04-21 10:37:47 -07:00
|
|
|
virtualenv # Tool for creating isolated Python environments.
|
|
|
|
i3ipc # Python library for controlling i3 window manager via its IPC interface.
|
|
|
|
ipython # Interactive computing environment for Python.
|
|
|
|
pip # Package installer for Python.
|
2023-07-10 17:52:34 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
in {
|
|
|
|
options.modules.devel.python.enable = lib.mkEnableOption "python";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
(python3.withPackages my-python-packages)
|
2024-04-21 10:37:47 -07:00
|
|
|
fava # Web interface for the double-entry bookkeeping software Beancount.
|
|
|
|
beancount # Double-entry bookkeeping software for tracking financial transactions.
|
|
|
|
nodePackages_latest.pyright # Latest version of the Pyright package, a static type checker for Python.
|
2023-07-10 17:52:34 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|