From patchwork Wed May 5 20:06:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29141 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 12C9527BC81; Wed, 5 May 2021 21:07:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 721DB27BC82 for ; Wed, 5 May 2021 21:07:10 +0100 (BST) Received: from localhost ([::1]:49640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leNnZ-0000w5-JH for patchwork@mira.cbaines.net; Wed, 05 May 2021 16:07:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leNnS-0000to-VQ for guix-patches@gnu.org; Wed, 05 May 2021 16:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leNnR-0007Fx-Ub for guix-patches@gnu.org; Wed, 05 May 2021 16:07:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leNnR-0001pa-Q8 for guix-patches@gnu.org; Wed, 05 May 2021 16:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48244] [PATCH] gnu: Add python-fb-re2. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 May 2021 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48244 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48244@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16202452127027 (code B ref -1); Wed, 05 May 2021 20:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2021 20:06:52 +0000 Received: from localhost ([127.0.0.1]:34170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leNnI-0001pH-Cr for submit@debbugs.gnu.org; Wed, 05 May 2021 16:06:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:50748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leNnG-0001pB-A1 for submit@debbugs.gnu.org; Wed, 05 May 2021 16:06:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leNnF-0000j9-QJ for guix-patches@gnu.org; Wed, 05 May 2021 16:06:50 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:51498 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leNnE-00074j-2E for guix-patches@gnu.org; Wed, 05 May 2021 16:06:49 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620245201; bh=mu9scMVI5Alva0vlJnhk5Vm7EXPEYcli2PszvQAhr2M=; h=From:To:Subject:Date; b=Y8i7+5vrgqBs1BRh19OHEh2lUHVE50YDcjf278GI7TfX8Upgu7ajqZ24nshHBQ2UH 6cd9WAF5KtvQMgl9kExyY3wnjo8KcPGzzr9z4PaC2TApjWdNSJczwNHgdjacr/qIdF C98qUUTMYpaUB1NVNQcz3LtOCGiB/m56p0FRVtDI= Message-Id: <6d596226b303921f5b1b7a2c2757cdfb94f6b2e5.1620245148.git.public@yoctocell.xyz> Date: Wed, 05 May 2021 22:06:36 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 34 X-Spam_score: 3.4 X-Spam_bar: +++ X-Spam_report: (3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=1.997, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-fb-re2): New variable. --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) base-commit: f47b8b332b3adaab8743775b9e45638dcd381e78 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 38ed1bc19e..32a4acc75f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -99,6 +99,7 @@ ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 LibreMiami +;;; Copyright © 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -181,6 +182,7 @@ #:use-module (gnu packages qt) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) + #:use-module (gnu packages regex) #:use-module (gnu packages sdl) #:use-module (gnu packages search) #:use-module (gnu packages scanner) @@ -1271,6 +1273,29 @@ conventions and aliases in the same expression.") API for locking files.") (license license:expat))) +(define-public python-fb-re2 + (package + (name "python-fb-re2") + (version "1.0.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "fb-re2" version)) + (sha256 + (base32 + "1kr6xwjfl3h15gwq00g5d4cwwmqs5z7z8k3q79p4x1ykb36w5cl3")))) + (build-system python-build-system) + (arguments + ;; No tests in PyPI tarball. + `(#:tests? #f)) + (inputs + `(("re2" ,re2))) + (home-page "https://github.com/facebook/pyre2") + (synopsis "Python wrapper for RE2") + (description "This package provides a Python extension that wraps Google's +RE2 regular expression library. It implements many of the features of +Python's built-in @code{re} module with compatible interfaces.") + (license license:bsd-3))) + (define-public python-filelock (package (name "python-filelock")