How to use specific Python version for notebook

Creating a nix-shell using nix-shell -p python310Packages.notebook creates a shell with python version 3.10.9 but I need version 3.10.6.

What would be the best way to achieve that?