Numerous Python packages use
PyTest
extensively.
Upon apt install a package that depends on python-astropy, python-pytest is also installed.
This is annoying because the system version of a package is typically several minor versions behind for stable Linux distros like Ubuntu.
To find which specific package is responsible for a package being installed, use a command like: