From 18a8556187ab311f6ac9115fe966cc2e9778d2d4 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 21 Mar 2025 02:06:40 -0400 Subject: [PATCH] Python devshell --- devshells/python.nix | 21 +++++++++++++++++++++ flake.nix | 1 + 2 files changed, 22 insertions(+) create mode 100644 devshells/python.nix diff --git a/devshells/python.nix b/devshells/python.nix new file mode 100644 index 0000000..0caed6c --- /dev/null +++ b/devshells/python.nix @@ -0,0 +1,21 @@ +{ + withSystem, + inputs, + ... +}: { + perSystem = { + config, + pkgs, + ... + }: { + devShells.python = pkgs.mkShell { + buildInputs = with pkgs; [ + (python3.withPackages (ps: + with ps; [ + pip + virtualenv + ])) + ]; + }; + }; +} diff --git a/flake.nix b/flake.nix index 52f3e5b..5e0ac88 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,7 @@ ./devshells/raku.nix ./devshells/markdown.nix ./devshells/typst.nix + ./devshells/python.nix ]; config = { systems = [