def to_pipfile_lock(self) -> dict:
_LOGGER.debug("<STR_LIT>", self.name)<EOL>if not self.is_locked():<EOL><INDENT>raise InternalError(f"<STR_LIT>")<EOL><DEDENT>result = {"<STR_LIT:version>": self.version, "<STR_LIT>": self.hashes}<EOL>if self.markers:<EOL><INDENT>result["<STR_LIT>"] = self.markers<EOL><DEDENT>if self.index:<EOL><INDENT>result["<STR_LIT:index>"] = self.index.name<EOL><DEDENT>return {self.name: result}<EOL>
Create an entry as stored in the Pipfile.lock.