From patchwork Wed Apr 20 17:27:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38704 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9A34227BBEA; Wed, 20 Apr 2022 18:29:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5995327BBE9 for ; Wed, 20 Apr 2022 18:29:24 +0100 (BST) Received: from localhost ([::1]:34874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE8p-0007zs-GD for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0007O7-83 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8U-0003CN-Uj for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8U-0006JH-S9 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 1/8] gnu: Add python-sybil. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:02 +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.165047570324095 (code B ref 55044); Wed, 20 Apr 2022 17:29:02 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:23 +0000 Received: from localhost ([127.0.0.1]:47327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7r-0006GY-8C for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7p-0006GH-Jm for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 84312240107 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475695; bh=ypW5KyojjvybpNypPbErH2WQP2d+FgnoGIl9I7HAQyw=; h=From:To:Cc:Subject:Date:From; b=P45CR9KdeDYHs5mh8XnVQ36MJqP0vk2N4me8uad+K2WSC1kZF0jxiUuVfuxz0tpiK PLe3qc/SnCcg9RVF7h28aoKZ9YbiFqNHNguwgzkt6ojlZhXmWJs2nYodMbtY2RnkeL U88TrRCYV1mlAc8SVfZjtySlb5Y97JZ0i4a+ekZmG7vWcn3f6Ki38dzqH4UqWtfKAC Wa9UowWs7NLDi1xutDuwuq/Dv5RIfFD998DnYXaVjIi2NykL8LURcBZzFOJqc54+IA KnkiyLKmpv/w6WsQXyJ1bAwVub/lTLsd3QzoJ710yWG/QfTJc3qLBeQpCD17CbBWnM 57GyCACVwoA2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71B4ct6z6tmJ; Wed, 20 Apr 2022 19:28:14 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:27:57 +0000 Message-Id: <20220420172804.8849-1-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-check.scm (python-sybil): New variable. --- gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2d35eb720e..1576a38b09 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021, 2022 Guillaume Le Vaillant ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; Copyright © 2022 Malte Frank Gerdes +;;; Copyright © 2022 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -2056,3 +2057,32 @@ eliminate flaky failures.") Python objects. It tries to use the objects available in the standard @code{unittest} module.") (license license:expat))) + +(define-public python-sybil + (package + (name "python-sybil") + (version "3.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sybil" version)) + (sha256 + (base32 "03ak1w93linfqx6c9lwgq5niyy3j9yblv4ip40hmlzmg0hidq0kg")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs (list python-pytest python-pytest-cov)) + (home-page "https://github.com/simplistix/sybil") + (synopsis + "Automated testing for the examples in your code and documentation.") + (description + "This library provides a way to check examples in your code and +documentation by parsing them from their source and evaluating the +parsed examples as part of your normal test run. Integration is +provided for the main Python test runners.") + (license license:expat))) From patchwork Wed Apr 20 17:27:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38708 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 51DAB27BBEA; Wed, 20 Apr 2022 18:29:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 09D0E27BBE9 for ; Wed, 20 Apr 2022 18:29:48 +0100 (BST) Received: from localhost ([::1]:36628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE9D-0000HI-5f for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0007PQ-1x for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0003Ci-Q0 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8V-0006JW-NF for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 2/8] gnu: Add python-pydispatcher. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:03 +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.165047571624158 (code B ref 55044); Wed, 20 Apr 2022 17:29:03 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:36 +0000 Received: from localhost ([127.0.0.1]:47337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7x-0006H6-Oj for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:36 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7t-0006GO-EN for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 99B06240027 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475699; bh=fCxblpGhjBGRxtBGGXGShwCZ2lPXy4Lw6xChqZ/1EGA=; h=From:To:Cc:Subject:Date:From; b=P6KDELp8DeMUyUZoSI6Xz0tl9IzgFZTMz9oJF0EF/1N9gLXW/0OABc2R/1V2UnSoX 2TQxqnZkbkTuQw285SXeeBEEzTsvrPSX8CU8xQCH3AptxU802n2TvuUGfp3/ogLv6H 0Q3HEkzYZlD/D7nSD/Qz9ig4jpKr2xr2kH/RblMwnZwLTs1aIFWDUWOjJs6zOGHdC2 XrvcwryJ59KXBi33P2Zx9lpdhH2S40SqM/rUYKLf2+EQ83pchGFJ41zyTzwH+C7e4Z Jg+stqvGNqLENqTjQ1UQgBB6mW6jD37A/L5+SDE4AnZc24No7jsRhk1tsIOVW80Nak 99c+H8d7fIMgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71G6ph1z9rxW; Wed, 20 Apr 2022 19:28:18 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:27:58 +0000 Message-Id: <20220420172804.8849-2-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pydispatcher): New variable. --- gnu/packages/python-xyz.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..78310e373a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -108,7 +108,7 @@ ;;; Copyright © 2021 Simon Streit ;;; Copyright © 2021 Daniel Meißner ;;; Copyright © 2021 Pradana Aumars -;;; Copyright © 2021 Felix Gruber +;;; Copyright © 2021, 2022 Felix Gruber ;;; Copyright © 2021 Sébastien Lerique ;;; Copyright © 2021 Raphaël Mélotte ;;; Copyright © 2021 ZmnSCPxj @@ -29534,3 +29534,34 @@ match a given regular expression, or count possible matches efficiently. It uses the parsed regular expression, so you get a much more accurate result than trying to just split strings.") (license license:asl2.0))) + +(define-public python-pydispatcher + (package + (name "python-pydispatcher") + (version "2.0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyDispatcher" version)) + (sha256 + (base32 "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs (list python-pytest)) + (home-page "http://pydispatcher.sourceforge.net") + (synopsis "Multi-producer-multi-consumer signal dispatching mechanism") + (description "PyDispatcher is an enhanced version of +Patrick K. O’Brien’s original dispatcher.py module. It provides the +Python programmer with a robust mechanism for event routing within +various application contexts. + +Included in the package are the robustapply and saferef modules, which +provide the ability to selectively apply arguments to callable objects +and to reference instance methods using weak-references.") + (license license:bsd-3))) From patchwork Wed Apr 20 17:27:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38706 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C111727BBEA; Wed, 20 Apr 2022 18:29:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8A81927BBE9 for ; Wed, 20 Apr 2022 18:29:40 +0100 (BST) Received: from localhost ([::1]:35708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE95-0008NZ-O1 for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0007Of-Ky for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0003Cb-CJ for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8V-0006JO-9Y for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 3/8] gnu: Add python-queuelib. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:03 +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.165047570924127 (code B ref 55044); Wed, 20 Apr 2022 17:29:03 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:29 +0000 Received: from localhost ([127.0.0.1]:47335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7x-0006H4-Gd for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7u-0006GQ-TS for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 522FA240109 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475701; bh=eorsd4WVZKtSBjaRwFMwl9bwSvb1lFrhTUzAmp5ZrM4=; h=From:To:Cc:Subject:Date:From; b=o0Q02gw46nXvXqmMon+XV7wGRmOaA4xgpfAfO7GXPSS4PSS4y3MCJRB5YToNFmTAT 1wxTzuX+85YkRxCfdT1KSbhXoHUXoqW3oUZ16dkRv9jicAFqNVsgiV/mLt/U5cabmS PbP9BL66xyKR1AsP9okEeENjzlztBerRKp7Gc9A2AeFyAZFG1+G5EmU/nD+GsAgDD9 0KciaC+fqdxXn7K5h5GJ70VoldkGt9+MlYJAg4Qx/ucftWyatWU5ZbAkg3baY1diJt oc3PA007zp5APgq72j+JWssEIHO4UxJGp+aM3qAIgh083WXOBA85e4bi5cAoKgxzWv JiuwA+xbW02Gg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71J5zxDz6tmX; Wed, 20 Apr 2022 19:28:20 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:27:59 +0000 Message-Id: <20220420172804.8849-3-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-queuelib): New variable. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 78310e373a..6c1aee8695 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29565,3 +29565,27 @@ Included in the package are the robustapply and saferef modules, which provide the ability to selectively apply arguments to callable objects and to reference instance methods using weak-references.") (license license:bsd-3))) + +(define-public python-queuelib + (package + (name "python-queuelib") + (version "1.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "queuelib" version)) + (sha256 + (base32 "1lpwq8wx3025i14y5h0hbald2ypbarf081pql6cqcak4y9kp482b")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (home-page "https://github.com/scrapy/queuelib") + (synopsis + "Collection of persistent (disk-based) and non-persistent (memory-based) queues") + (description "Queuelib is a Python library that implements object +collections which are stored in memory or persisted to disk, provide a +simple API, and run fast. + +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))) From patchwork Wed Apr 20 17:28:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38705 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D978427BBE9; Wed, 20 Apr 2022 18:29:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 55C6A27BBEA for ; Wed, 20 Apr 2022 18:29:39 +0100 (BST) Received: from localhost ([::1]:35570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE94-0008Ji-FH for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:38 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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))) From patchwork Wed Apr 20 17:28:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38710 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 77F9827BBEA; Wed, 20 Apr 2022 18:29:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4390327BBE9 for ; Wed, 20 Apr 2022 18:29:56 +0100 (BST) Received: from localhost ([::1]:37262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE9L-0000aU-Fx for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0007Qm-T8 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0003Cv-Ky 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-0006Jl-IA for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 5/8] gnu: Add python-protego. 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.165047571724174 (code B ref 55044); Wed, 20 Apr 2022 17:29:04 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:37 +0000 Received: from localhost ([127.0.0.1]:47347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE84-0006Hk-QN for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7y-0006Gi-4t for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 92308240026 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475704; bh=ZLS20MMtillwfib84JN1o55ZqWi1W1yB1agl/OcUdhk=; h=From:To:Cc:Subject:Date:From; b=J8ktXdD5DjlQM/vpbljvRmgOoh6o+Wqgt8tMPJ6j2LNJR4SYl91AVp0iBv6aYzwJF RwDoBmiz2m+NfNY6u7cQbPx8JkLNJ6yFhkj5TZ17Y+b6495ivIALiMPaFgQ914GkiQ xDPIjDUHMHG6FnDHlQwg51vpRClZdP6lXgqGBJwdc4VcJ2xnXKK/PKb0i2Ol3h8mxQ qAj9LvNKosDMYD+1Kh3LJZwCUxWnpW+twmTl1UALakuF/x/TuiDmQGAna8KO11rKfu zbIe8/ODeME3nC8VUGyuhdpZt14RSdXIVo4NK156dyeZftVQ84XLNiPAOlXXj0H5CR jVy801tEwGH1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71N0drWz6tmJ; Wed, 20 Apr 2022 19:28:24 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:01 +0000 Message-Id: <20220420172804.8849-5-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-protego): New variable. --- gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7e333916b6..05104f8fe2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6466,3 +6466,30 @@ as Flask.") "This package provides a Python JSON-RPC 2.0 protocol and server powered by asyncio.") (license license:expat))) + +(define-public python-protego + (package + (name "python-protego") + (version "0.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Protego" version)) + (sha256 + (base32 "1wigcjyhz8zbk562zhgfbkm733dcn65j1swzvki79dys0i1nsrnz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs (list python-six)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/scrapy/protego") + (synopsis + "Pure-Python robots.txt parser with support for modern conventions") + (description + "Pure-Python robots.txt parser with support for modern conventions.") + (license license:bsd-3))) From patchwork Wed Apr 20 17:28:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38703 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2D09B27BBEA; Wed, 20 Apr 2022 18:29:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EB22627BBE9 for ; Wed, 20 Apr 2022 18:29:15 +0100 (BST) Received: from localhost ([::1]:33776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE8h-0007Wn-3F for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8X-0007Rv-Av for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8X-0003D2-1B for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8W-0006Js-UV for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 6/8] gnu: Add python-parsel. 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.165047571724181 (code B ref 55044); Wed, 20 Apr 2022 17:29:04 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:37 +0000 Received: from localhost ([127.0.0.1]:47349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE85-0006Hr-3t for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:37 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7z-0006Gk-HP for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EBE08240108 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475706; bh=ZlBst97AcLtUvEDF77Sz7jf66slJfpqvkEyqWFWIaoI=; h=From:To:Cc:Subject:Date:From; b=QMJwXlTv/5s2imch1cdjPFjyD1PNxIiGUf2PuW8kgkxIr6PuJB0KI73nnRCAEOGCB XFrMNOFPEbRNyJdxIVcySauUaW58A4keOgRYheFEjvHw8mNEQijQrWKlpz0fyZ15Aq 5HCloX7Fja4UwdZQNcj/G6x31/RFTf+2a4+Zs8rCPUqQvFJhjZN7/ZIP58t515jf6r CvZi2tHR/4jW80kINSeuyrpfdDcyh6UhKhiUJvYE0zJox0UEr89mt8McrRtlXJczCc NYUgPyYxLLUYgyl54oumZgUYr1W6x3yY1wuOSwULGEjDamgl7c5wOhCMcONKY/sF7H ivFPXK0aGVf+A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71P3jRcz9rxR; Wed, 20 Apr 2022 19:28:25 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:02 +0000 Message-Id: <20220420172804.8849-6-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-parsel): New variable. --- gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 05104f8fe2..da3f9cf980 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6493,3 +6493,29 @@ by asyncio.") (description "Pure-Python robots.txt parser with support for modern conventions.") (license license:bsd-3))) + +(define-public python-parsel + (package + (name "python-parsel") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "parsel" version)) + (sha256 + (base32 "0yawf9r3r863lwxj0n89i7h3n8xjbsl5b7n6xg76r68scl5yzvvh")))) + (build-system python-build-system) + (propagated-inputs + (list python-cssselect + python-lxml + python-six + python-w3lib)) + (native-inputs + (list python-pytest python-pytest-runner)) + (home-page "https://github.com/scrapy/parsel") + (synopsis + "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors") + (description "Parsel is a library to extract and remove data from +HTML and XML using XPath and CSS selectors, optionally combined with +regular expressions.") + (license license:bsd-3))) From patchwork Wed Apr 20 17:28:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38707 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6941427BBE9; Wed, 20 Apr 2022 18:29:47 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0230E27BBEA for ; Wed, 20 Apr 2022 18:29:47 +0100 (BST) Received: from localhost ([::1]:36462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE9C-0000Dq-5R for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8X-0007Ta-OA for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8X-0003DG-Er for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8X-0006Jz-BP for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 7/8] gnu: Add python-itemloaders. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:05 +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.165047571724187 (code B ref 55044); Wed, 20 Apr 2022 17:29:05 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:37 +0000 Received: from localhost ([127.0.0.1]:47351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE85-0006Hz-Fx for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE80-0006Gm-UJ for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5E7F9240026 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475707; bh=D2LAG/HzgW5n2gqHEv4C7U7MjzbDdWllnL7v6o0cI5w=; h=From:To:Cc:Subject:Date:From; b=Pqp/osTD3nMt0wuAqeyL6WjLdbgnurD2sEisWYJewxsjpORvM4oObZiR8+5cztiob WU3HiS8E7QiR/SGxN1LJgnI+lgDPVseav2h223Mn0otUz2rREMiGQjUL7wguMDHcKV K2eMEKyuTtyLyUbpX/DqJIO4rv59ITiPi/ZNP22nAse21Rfz/uix8aTmfswK44tNAW LbeF1LN3ZbIu/bjQUGZlu/4zTqRbeYw7FkUBVf/MYxk6bI/R1Jx57u6LQpthRRewZ0 EmJatSsgey/7kOyEGsDQubLkSGxpJcQhYdezPbVxEGjHliHKubQS56/qozGXfUqcha UEGmKS3CPHllQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71Q6S9lz9rxW; Wed, 20 Apr 2022 19:28:26 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:03 +0000 Message-Id: <20220420172804.8849-7-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-itemloaders): New variable. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a7f7cc91de..e6b4d51b2c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29619,3 +29619,27 @@ Currently supported types are: Additionally, interaction with arbitrary types is supported by implementing a pre-defined interface.") (license license:bsd-3))) + +(define-public python-itemloaders + (package + (name "python-itemloaders") + (version "1.0.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "itemloaders" version)) + (sha256 + (base32 "15hc78h90qhwass1bga1c3xar2dd6j8sxg61zg6jvh74lf6csxqj")))) + (build-system python-build-system) + (propagated-inputs + (list python-itemadapter python-jmespath python-parsel python-w3lib)) + (home-page "https://github.com/scrapy/itemloaders") + (synopsis "Base library for scrapy's ItemLoader") + (description "Itemloaders is a library that helps you collect data +from HTML and XML sources. It comes in handy to extract data from web +pages, as it supports data extraction using CSS and XPath Selectors. + +It’s specially useful when you need to standardize the data from many +sources. For example, it allows you to have all your casting and +parsing rules in a single place.") + (license license:bsd-3))) From patchwork Wed Apr 20 17:28:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38709 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2FB9427BBEA; Wed, 20 Apr 2022 18:29:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E112F27BBE9 for ; Wed, 20 Apr 2022 18:29:54 +0100 (BST) Received: from localhost ([::1]:37208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE9K-0000YA-2v for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8Y-0007Us-7b for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8X-0003DN-Tr for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8X-0006K7-R4 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 8/8] gnu: Add python-scrapy. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:05 +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.165047572224203 (code B ref 55044); Wed, 20 Apr 2022 17:29:05 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:42 +0000 Received: from localhost ([127.0.0.1]:47355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE89-0006IJ-OY for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:41735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE87-0006HY-W5 for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6B30A240027 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475714; bh=zjhysv4v/owNK54ZfGUBLigHSWAnWhyJZF6zanXhN78=; h=From:To:Cc:Subject:Date:From; b=GPA3lKHGz4/vphNIbjyhIpTNlLCsIbDWLcG+O7ENdPr+Bm//szgc/gpGlsFkFY40A eB8I3x5WKPJYGgvo5Uts1WiuFbPfxOTVVWm7v4ZV7Z5bgDG6HPihEcmJw7vQFd+vUe Smn/LsX8OFov7Wv6EpNPtaavjvw+RNfuNPR4WeLuyrKLj6sh0s7nodJnNeOZLbKnGm tlV45d87eif86TOsybE5rrSxGm70gn26vagZ6l9J11gFk/prZNm8ioXL44DqD8MOve SS6kOPJIgcHrV+hud7Hcp+n5S1yXLtm4pFQQ6TYe3PwYRwAZ7RXCcM1J/IfzLmhSRx 3HPZ+5QvSwKWA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71Y6sg3z6tnh; Wed, 20 Apr 2022 19:28:33 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:28:04 +0000 Message-Id: <20220420172804.8849-8-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-scrapy): New variable. --- gnu/packages/python-web.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index da3f9cf980..f4ff4f494c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6519,3 +6519,63 @@ by asyncio.") HTML and XML using XPath and CSS selectors, optionally combined with regular expressions.") (license license:bsd-3))) + +(define-public python-scrapy + (package + (name "python-scrapy") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Scrapy" version)) + (sha256 + (base32 "09rqalbwcz9ix8h0992mzjs50sssxsmmh8w9abkrqchgknjmbzan")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + ;; requires network access + "--ignore" "tests/test_command_check.py" + "-k" + (string-append + ;; Failing for unknown reasons + "not test_server_set_cookie_domain_suffix_public_private" + " and not test_user_set_cookie_domain_suffix_public_private" + " and not test_pformat") + "tests"))))))) + (propagated-inputs + (list python-botocore ; Optional: For S3FeedStorage class. + python-cryptography + python-cssselect + python-itemadapter + python-itemloaders + python-lxml + python-parsel + python-protego + python-pydispatcher + python-pyopenssl + python-queuelib + python-service-identity + python-setuptools + python-tldextract + python-twisted + python-w3lib + python-zope-interface)) + (native-inputs + (list python-pytest + python-pyftpdlib + python-sybil + python-testfixtures + python-uvloop + )) + (home-page "https://scrapy.org") + (synopsis "A high-level Web Crawling and Web Scraping framework") + (description "Scrapy is a fast high-level web crawling and web +scraping framework, used to crawl websites and extract structured data +from their pages. It can be used for a wide range of purposes, from data +mining to monitoring and automated testing.") + (license license:bsd-3)))