{ pkgs ? import {} }: let my-python-packages = ps: with ps; [ numpy # other python packages ]; in pkgs.mkShell { buildInputs = with pkgs.python311Packages; [ numpy (opencv4.override { enableGtk2 = true; }) ]; }