It's probably no good to you, but one of the reasons I like NixOS is the simplicity of creating single file scripts including dependencies. For example, something using Pendulum and ffmpeg together would start like this:
#!/usr/bin/env nix-shell
#!nix-shell -i python -p python pythonPackages.pendulum ffmpeg
Then you just put the code after that.