From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cFwHMflCYGIt3gAAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 19:29:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iGXwMPlCYGJZ2AAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 19:29:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 85F0B29814 for ; Wed, 20 Apr 2022 19:29:29 +0200 (CEST) Received: from localhost ([::1]:35570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE8u-0008Ji-P3 for larch@yhetil.org; Wed, 20 Apr 2022 13:29:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0007Q7-Hh for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0003Co-6U for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8W-0006Jd-3i for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 4/8] gnu: Add python-itemadapter. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55044 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55044@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 55044-submit@debbugs.gnu.org id=B55044.165047571624167 (code B ref 55044); Wed, 20 Apr 2022 17:29:04 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:36 +0000 Received: from localhost ([127.0.0.1]:47345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE84-0006Hb-GP for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7w-0006GZ-Is for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 02598240108 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475703; bh=Az/TISPeffBaA33+1O2pIblQHlWltkiORHzFOR2CZSw=; h=From:To:Cc:Subject:Date:From; b=N6UPGkbnJKPUoCWXvI6/J4ale0i71plLhiBne0QGrCYD23MBBmoNNewyVvQHybglY 6TQzFQvjdrZyZ7M7cvIiExeVPoCO73lGpMvdcB2fHHlWoAK5luSQuhmFFrcbVbsNXT 07q8+UnVtZSjD4KWqTKGv4+pWxuivGwdun6DYQYgRJGkeubSLBYjxcX4IEhq1rGVbH 8gbtyxy5oINNAFdCGcr5ZK8r9nPVpafBH4a9pi0JikdKKz8AhXUzuQ7Z7QyCUrlUPN VvEj2WeXNFOPw2Wl4xmHJx3xC2BFKGwQ+Ie1D1pwkdyQu1b9FdvYoWMluLJL16tX5q CDj58o6oSVe0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71L3bnLz9rxX; Wed, 20 Apr 2022 19:28:22 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:00 +0000 Message-Id: <20220420172804.8849-4-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650475769; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OtmIh0+3nZB7pYQzfPQr88uqrb5jj7olQ04ru0u6zFo=; b=q21TRhMinBXlmKXCukJHeqyQzkYlqbYuaJaH9EIfltQX7SFmq+dvTxDeAGO23NrqztzTq6 NeYpBI70dQR4wlpQFk96H2Aud+NbOi9aUTgh3t77apqX/ozdbP0+eL8LaW/+z8bU5lzfUa xo0QyflkfLXqMEfsfCS0y189opnseLA7tAfB69P5YPhpfzA03QVCQIk7YDtNEBRoCDYPpF ybb33u8UO1/xbPjOcPElsL6XYVJ0rpxbtt3i7tw4zqQ2Pr7hacjeQF6hlgrMSVSXoOqsc9 sNAvMKC/J72Cz/VJ8dCriuj1X9eDOUbMjSd8qPfPOQbTer3sQEOoQrgASgMLZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650475769; a=rsa-sha256; cv=none; b=QsSNnA4cN4K3IMmGxGj8lry6HMS6mq47bDkKmsCaLEbko77Pp7h4PUpBF0qy9BNhbaxIHc lPqv/wGOSeEF1qNlSb6LCqbmI7Et+BupxsV+vbQS4BipM/XQ4/G6AyvctrbEFv2MLMKfjB eiKh4lXPRZuHZ+DXU3s97iBWIMBWAccwZULKZEp1gK6ofYxtJBtVe8adE8Z4RGcpYRSL3E 5RkJlFAnL7LWBDTn5PkOxVh6uG+km28xtJ3gEBCDKyfzUEJ2qFJRkx05PH7/jhX6YoUTuG XlK+Ol0Dl8gLHH8J+H/wS8TI29ClMxOHywqTDxDgcG14OTrlyZkWBkZJr/bh9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=N6UPGkbn; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=N6UPGkbn; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 85F0B29814 X-Spam-Score: 7.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: BWPPzqgOcyb0 * gnu/packages/python-xyz.scm (python-itemadapter): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6c1aee8695..a7f7cc91de 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29589,3 +29589,33 @@ Queuelib provides collections for queues (FIFO), stacks (LIFO), queues sorted by priority and queues that are emptied in a round-robin fashion.") (license license:bsd-3))) + +(define-public python-itemadapter + (package + (name "python-itemadapter") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "itemadapter" version)) + (sha256 + (base32 "083wp3h2brh8x19jbdr8rz3biqwp3jlqd0rfzcyrjyhssffsgdh5")))) + (build-system python-build-system) + (home-page "https://github.com/scrapy/itemadapter") + (synopsis "Common interface for data container classes") + (description "The ItemAdapter class is a wrapper for data container +objects, providing a common interface to handle objects of different +types in an uniform manner, regardless of their underlying implementation. + +Currently supported types are: +@itemize +@item scrapy.item.Item +@item dict +@item dataclass-based classes +@item attrs-based classes +@item pydantic-based classes +@end itemize + +Additionally, interaction with arbitrary types is supported by +implementing a pre-defined interface.") + (license license:bsd-3))) -- 2.30.2