code: def source(self):
          
          if hasattr(self, 'srpm'):
              rpm = self.from_package(self.srpm)
              # Source RPMs don't have epoch for some reason
              rpm.epoch = self.epoch
              return rpm
docs: InstalledRpm: Returns source RPM of this RPM object.