old_contents: import os
  os.environ['SETUPTOOLS_SCM_DEBUG'] = '1'
  
  
  def pytest_report_header():
      import pkg_resources
      version = pkg_resources.get_distribution('setuptools_scm').version
      return ['setuptools_scm version ' + version]
  
new_contents: import os
  os.environ['SETUPTOOLS_SCM_DEBUG'] = '1'
  VERSION_PKGS = ['setuptools', 'setuptools_scm']
  
  def pytest_report_header():
      import pkg_resources
      res = []
      for pkg in VERSION_PKGS:
          version = pkg_resources.get_distribution(pkg).version
          res.append('%s version %s' % (pkg, version))
      return res
  
subject: extend reporting for pytest