From patchwork Thu Jun 16 18:56:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 40055 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 BC8B927BBEA; Thu, 16 Jun 2022 19:58:19 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 7356427BBE9 for ; Thu, 16 Jun 2022 19:58:19 +0100 (BST) Received: from localhost ([::1]:35868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1uh8-0005lu-Li for patchwork@mira.cbaines.net; Thu, 16 Jun 2022 14:58:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1ugs-0005kY-IN for guix-patches@gnu.org; Thu, 16 Jun 2022 14:58:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1ugs-000558-8s for guix-patches@gnu.org; Thu, 16 Jun 2022 14:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1ugs-0001OH-2c for guix-patches@gnu.org; Thu, 16 Jun 2022 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56027] [PATCH] gnu: Add python-timeout-decorator. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56027 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56027@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16554058265278 (code B ref -1); Thu, 16 Jun 2022 18:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2022 18:57:06 +0000 Received: from localhost ([127.0.0.1]:43168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1ufy-0001N3-J5 for submit@debbugs.gnu.org; Thu, 16 Jun 2022 14:57:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:43034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1ufx-0001Mw-6T for submit@debbugs.gnu.org; Thu, 16 Jun 2022 14:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1ufw-0005UL-Oh for guix-patches@gnu.org; Thu, 16 Jun 2022 14:57:04 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:34380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o1ufo-0004rF-8y for guix-patches@gnu.org; Thu, 16 Jun 2022 14:57:04 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LPBH62lnSz9sJB for ; Thu, 16 Jun 2022 20:56:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655405810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FlYge8isMXDHe4WXU76srwulI7FSAM26MG0Ci3kF4nE=; b=rV3Lgz4CAMqmd8gdIJDvTQP7UpgQerB5/UkjMeYeDUBA4Y3NBsAwIpCKvhrckUrgR5m4Wk pVk9sUHl1vhPQALVPj7MAfj7A4RANnBL9y1p1Dgzm/NLlx0Mk2ODH/kj2oD1tOZ8Gg7v8f GRReaYtU01asmZovX2EoWG9Tj0JSObWWV/Sp1tww3vFCW06lMQ/FMz4FsPN7E9didMoIFf +hJcmrx+8IFbcKglpOW8e/yL75X3GrQokdqmBb6sQUJ/84I45nha7Gwy+EGJHODOZmaTDT 2CIj/zlXWP/hYlz9W4ZaVu2/GWu80fOIos5+XCRxlNWN/tmIFqkktaqDHit2nw== Date: Thu, 16 Jun 2022 18:56:45 +0000 Message-Id: <20220616185645.10158-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: zet981otbinqtc5yqgtkptb4gds7aaqq X-MBO-RS-ID: d6846659ada63f7bffc Received-SPF: pass client-ip=80.241.56.152; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham 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: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-timeout-decorator): New variable. --- gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4b8e63890f..7b67fda45f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -123,6 +123,7 @@ ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 Artyom V. Poptsov ;;; Copyright © 2022 Paul A. Patience +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -29693,3 +29694,22 @@ (define-public python-langcodes and names, built from Unicode CLDR and the IANA subtag registry, if you install @code{python-language-data}.") (license license:expat))) + +(define-public python-timeout-decorator + (package + (name "python-timeout-decorator") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "timeout-decorator" version)) + (sha256 + (base32 + "1mxk2qyydhzncm93z08kvj5ssxq3fr2n7pkrrji28nqwvdc2ybva")))) + (build-system python-build-system) + (home-page "https://github.com/pnpnpn/timeout-decorator") + (synopsis "Python decorator for applying a timeout to a function") + (description + "This package provides the Python decorator +@code{timeout_decorator.timeout} which can be used to apply a timeout to the +decorated function. The decorator supports multi-threaded applications.") + (license license:expat)))