I am considering packaging a Python program for Arch Linux to be distributed with the AUR. I have created a PKGBUILD file that I can use with makepkg to build the package. The package builds and installs fine on my machine, but that doesn't seem very robust since if a dependency is missing from the PKGBUILD but already installed on my machine I will miss it.
I was thinking that I could do this in a virtual machine, but that seems like potential overkill. I also thought about trying to use a chroot environment, but I am not sure that will work. The Python program creates a GUI so it requires at least a portion of xorg/X11.
How do I go about building/creating a package and testing that all the dependencies are included?