From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oHwwMEl9q2IKfQEAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 20:58:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aMIeL0l9q2K2dwEAG6o9tA (envelope-from ) for ; Thu, 16 Jun 2022 20:58:17 +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 42A7232A31 for ; Thu, 16 Jun 2022 20:58:17 +0200 (CEST) Received: from localhost ([::1]:35868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1uh4-0005lu-VC for larch@yhetil.org; Thu, 16 Jun 2022 14:58:15 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via 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=1655405897; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FlYge8isMXDHe4WXU76srwulI7FSAM26MG0Ci3kF4nE=; b=pu//cOvR134HYhiWvVe97DE7IX8RuFZR37g3uuJOEblvl0BnAC8aBRdHPIOKyoFxv54qLV XsTMAc6rNlwjmMi0k2sf7MORPuSUaRQwhH9hDMdwvGHx1P6TiXJKVc8hpih7MDqPSIFy8j tWzQXVLuXi4gu7BaBlQdtrwH3UH8cIJzI/9VCF65awW+YvDD/WmjMbkUCZixtoPk5dZ/si JnJYt3iEShIN/0bLYv118rxL1C+eFvYn30xdWdIDWZp28WHN+Yp9uDqMi081/7SnobuNv9 68jODHgi2gNI94ZN4Hdi87yFvNo3/trveZuEYgUExpo8gM8aa7gtJMqJizguGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655405897; a=rsa-sha256; cv=none; b=EJIOV7q8XS5brenqwbs8wN8TAg6eVoSNyi1TsGfCi1OZE8Dm7EMmz7++3kNblRHIriS/1+ XSZ4poUHo69HM2hW+8/4wH1Tz1UqkWc6Cjco170SstjlTuyxWlVSKqEgKjfnPsVEOUtI1W 1eZGiE64eG+knB7TifETVfNGPnS9xrNXzAvOyJgltCo2D9k9rnvaG08fnysLiMeB2DdsFT T9g5MQcl+g8BfbTIu0WbOD9cCHqrbsTs95dfpanaji30efj3sQlkeBi+em1/DxHZf3jC38 yZmxFlAPRfIOJOTkwTXrWVbxr8PH5A4fuePQxfVmRcfA2KbSBgReRw9GkTed5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=rV3Lgz4C; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=rV3Lgz4C; dmarc=pass (policy=none) header.from=gnu.org; 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: 42A7232A31 X-Spam-Score: -3.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3WhXn4xz3gGg * 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))) -- 2.36.1