'Given a nonce, return :py:class:`~gratipay.models.package.Package`
objects associated with it.'

def get_packages_claiming(self, cursor, nonce):

    return cursor.all(u'\n                                                SELECT    p.*::packages\n                                                        FROM    packages    p\n                                                        JOIN    claims    c\n                                                                ON    p.id    =    c.package_id\n                                                    WHERE    c.nonce=%s\n                                        ORDER    BY    p.name    ASC\n                                ', (nonce,))
