old_contents: # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
  # Spack Project Developers. See the top-level COPYRIGHT file for details.
  #
  # SPDX-License-Identifier: (Apache-2.0 OR MIT)
  
  
  class PyApplicationinsights(PythonPackage):
      """This project extends the Application Insights API surface to support
      Python."""
  
      homepage = "https://github.com/Microsoft/ApplicationInsights-Python"
      pypi = "applicationinsights/applicationinsights-0.11.9.tar.gz"
  
      version('0.11.9', sha256='30a11aafacea34f8b160fbdc35254c9029c7e325267874e3c68f6bdbcd6ed2c3')
  
      depends_on('py-setuptools', type='build')
  
new_contents: # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
  # Spack Project Developers. See the top-level COPYRIGHT file for details.
  #
  # SPDX-License-Identifier: (Apache-2.0 OR MIT)
  
  
  class PyApplicationinsights(PythonPackage):
      """This project extends the Application Insights API surface to support
      Python."""
  
      homepage = "https://github.com/Microsoft/ApplicationInsights-Python"
      pypi = "applicationinsights/applicationinsights-0.11.9.tar.gz"
  
      # 'applicationinsights.django' requires 'django', but 'django' isn't listed as a
      # dependency. Leave out of 'import_modules' list to avoid unnecessary dependency.
      import_modules = [
          'applicationinsights', 'applicationinsights.flask',
          'applicationinsights.exceptions', 'applicationinsights.requests',
          'applicationinsights.channel', 'applicationinsights.channel.contracts',
          'applicationinsights.logging'
      ]
  
      version('0.11.9', sha256='30a11aafacea34f8b160fbdc35254c9029c7e325267874e3c68f6bdbcd6ed2c3')
  
      depends_on('py-setuptools', type='build')
  
subject: fix import tests (#23914)