The main options for using non-nixpkgs python module versions are Mach-nix: Create python environments quick and easy or poetry2nix, and pypi2nix. You could also make an overlay in your nix-shell and override the python module versions to match the requirements.txt, but I would check out one of the above tools.
1 Like