From b89f77d481b631d83a0ed4b5736fb37ed9b8f66b Mon Sep 17 00:00:00 2001 From: Stephen Stubbs Date: Mon, 15 Apr 2024 19:46:09 +0100 Subject: [PATCH] feature: add python venv --- README.md | 2 -- python/flake.nix | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 35a0d90..771e393 100644 --- a/README.md +++ b/README.md @@ -221,7 +221,6 @@ The sections below list what each template includes. In all cases, you're free t - [Python] 3.11.4 - [pip] 23.0.1 -- [Virtualenv] 20.19.0 ### [`ruby`](./ruby/) @@ -355,7 +354,6 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T [texlive]: https://www.tug.org/texlive/ [tflint]: https://github.com/terraform-linters/tflint [vault]: https://www.vaultproject.io -[virtualenv]: https://pypi.org/project/virtualenv [vulnix]: https://github.com/flyingcircusio/vulnix [yarn]: https://yarnpkg.com [zig]: https://ziglang.org diff --git a/python/flake.nix b/python/flake.nix index 6cb2695..7f75821 100644 --- a/python/flake.nix +++ b/python/flake.nix @@ -13,8 +13,12 @@ { devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell { - packages = with pkgs; [ python311 virtualenv ] ++ - (with pkgs.python311Packages; [ pip ]); + venvDir = "venv"; + packages = with pkgs; [ python311 ] ++ + (with pkgs.python311Packages; [ + pip + venvShellHook + ]); }; }); };