From patchwork Tue Jan 4 00:12:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 35931 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 6E3C327BBEA; Tue, 4 Jan 2022 00:13:36 +0000 (GMT) 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 2774027BBE9 for ; Tue, 4 Jan 2022 00:13:36 +0000 (GMT) Received: from localhost ([::1]:45562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4XSI-0003VM-RK for patchwork@mira.cbaines.net; Mon, 03 Jan 2022 19:13:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4XRn-0003VD-MU for guix-patches@gnu.org; Mon, 03 Jan 2022 19:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53257) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4XRm-0004CI-Lm for guix-patches@gnu.org; Mon, 03 Jan 2022 19:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4XRm-0004j2-HQ for guix-patches@gnu.org; Mon, 03 Jan 2022 19:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52995] [PATCH] gnu: Add python-tweepy. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Jan 2022 00:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52995 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52995@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164125517118143 (code B ref -1); Tue, 04 Jan 2022 00:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2022 00:12:51 +0000 Received: from localhost ([127.0.0.1]:36570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4XRT-0004iQ-Gi for submit@debbugs.gnu.org; Mon, 03 Jan 2022 19:12:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:47220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4XRR-0004iH-HA for submit@debbugs.gnu.org; Mon, 03 Jan 2022 19:12:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4XRR-0003Uv-Cu for guix-patches@gnu.org; Mon, 03 Jan 2022 19:12:41 -0500 Received: from latitanza.investici.org ([82.94.249.234]:48273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4XRO-0004BC-Rp for guix-patches@gnu.org; Mon, 03 Jan 2022 19:12:41 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4JSY353dqBzGp42; Tue, 4 Jan 2022 00:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1641255153; bh=yVrcoCutHpoBkRCC+LmZs5I5NFMxVUfpox2nl7bGbSc=; h=From:To:Cc:Subject:Date:From; b=mqOAl1ciTcTxoAFgI4ae04PIvg5lmIZnkr/+SxQDtt85yKUvJu1RsUt3a1ho9coCg 1A3tY4AsXXwGzGwV0G9yUx6S3ugxQjegJE60NVMZzjwKgLlAR6jmUjAA2STcI3hsCu CP0naWRJ9o1TPqnp1l6p5flpI2WmZjhFrrR4w3RA= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4JSY352nmVzGp40; Tue, 4 Jan 2022 00:12:33 +0000 (UTC) Date: Tue, 4 Jan 2022 01:12:10 +0100 Message-Id: <20220104001210.21299-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=82.94.249.234; envelope-from=goodoldpaul@autistici.org; helo=latitanza.investici.org X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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" Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-tweepy): New variable. --- gnu/packages/python-web.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) base-commit: 01ec5efff7cf95cae69493bd4ccfdd21a38770ae diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index bc7e21ca85..00598e8307 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -39,7 +39,7 @@ ;;; Copyright © 2020 Edouard Klein ;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen -;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2020, 2022 Giacomo Leidi ;;; Copyright © 2021 Ekaitz Zarraga ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Maxime Devos @@ -6264,3 +6264,36 @@ (define-public python-mwparserfromhell Full documentation may be found at @uref{https://mwparserfromhell.readthedocs.io, ReadTheDocs}") (license license:expat))) + +(define-public python-tweepy + (package + (name "python-tweepy") + (version "4.4.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/tweepy/tweepy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jl3j20iqvzqqw5q5ldval5wrc2pdx94zff3b6b87j51yjx3qjhr")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "unittest" "discover" "tests"))))))) + (propagated-inputs + (list python-aiohttp python-requests python-requests-oauthlib)) + (native-inputs + (list python-vcrpy)) + (home-page "https://www.tweepy.org/") + (synopsis "Twitter library for Python") + (description "This package provides @code{Tweepy}, an easy-to-use Python +library for accessing the Twitter API.") + (license license:expat)))