From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 1mTfMWlN4l6lUQAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 15:27:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WE4iLWlN4l7eZgAAB5/wlQ (envelope-from ) for ; Thu, 11 Jun 2020 15:27:37 +0000 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 8415A94053B for ; Thu, 11 Jun 2020 15:27:37 +0000 (UTC) Received: from localhost ([::1]:46750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjP7A-0002JQ-9q for larch@yhetil.org; Thu, 11 Jun 2020 11:27:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOv3-00074X-I8 for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjOv3-00049i-4e for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjOv2-0005K2-WA for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCH 07/26] gnu: Add python-trio. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 15:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41807@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 41807-submit@debbugs.gnu.org id=B41807.159188846320204 (code B ref 41807); Thu, 11 Jun 2020 15:15:04 +0000 Received: (at 41807) by debbugs.gnu.org; 11 Jun 2020 15:14:23 +0000 Received: from localhost ([127.0.0.1]:37722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuN-0005Fi-1s for submit@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:23 -0400 Received: from latitanza.investici.org ([82.94.249.234]:54111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuG-0005Cu-1I for 41807@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:17 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 3E904120969; Thu, 11 Jun 2020 15:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1591888455; bh=VTFn40MMZIDujCZObv9N9Bq+W56uI+pL3oet91reglI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ffwIsqS0iLpsk0AMK9tnHQtnRuyzuts6W3/VwqZJWY8BUqaTT9rBAq/WHFO7RyJBi L3TRiprFJHrpOlZuINUp7AfT4UgC+T8Txa/xzPzo9+9WQnl5OhGjnnQLaUJvrKbq6w RnSlWLSmZtbia8PW8lkt5iArewr/BU+z+0Ea5aqM= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 0D96E12015C; Thu, 11 Jun 2020 15:14:14 +0000 (UTC) From: Giacomo Leidi Date: Thu, 11 Jun 2020 17:13:38 +0200 Message-Id: <20200611151357.18843-7-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200611151357.18843-1-goodoldpaul@autistici.org> References: <20200611151357.18843-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=autistici.org header.s=stigmate header.b=ffwIsqS0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.99 X-TUID: zZufww9R3dLA * gnu/packages/python-xyz.scm (python-trio): New variable. --- gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f1feccd8c2..b6dec540ab 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20220,3 +20220,61 @@ async function is running under.") TLS certificates for testing purposes.") ;; Choice of either license. (license (list license:expat license:asl2.0)))) + +(define-public python-trio + (package + (name "python-trio") + (version "0.15.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trio" version)) + (sha256 + (base32 + "0cvzd0ls2c5971v7rw1jpxq533sdjblb15xwsd2axcnqp158c41h")) + (modules '((guix build utils))) + (snippet + '(begin + ;; This test fails with a timeout error. + (delete-file "trio/_core/tests/test_ki.py") + ;; This test depends on trio/_core/tests/test_ki.py. + (delete-file "trio/tests/test_threads.py") + ;; This test depends on network access. + (delete-file "trio/tests/test_socket.py") + ;; This test depends on writing to $HOME. + (delete-file "trio/tests/test_exports.py"))))) + (build-system python-build-system) + (native-inputs + `(("python-astor" ,python-astor) + ("python-jedi" ,python-jedi) + ("python-pylint" ,python-pylint) + ("python-pyopenssl" ,python-pyopenssl) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-trustme" ,python-trustme))) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest") + #t))))) + (propagated-inputs + `(("python-async-generator" + ,python-async-generator) + ("python-attrs" ,python-attrs) + ("python-cffi" ,python-cffi) + ("python-contextvars" ,python-contextvars) + ("python-idna" ,python-idna) + ("python-outcome" ,python-outcome) + ("python-sniffio" ,python-sniffio) + ("python-sortedcontainers" + ,python-sortedcontainers))) + (home-page "https://github.com/python-trio/trio") + (synopsis + "Python library for async concurrency and I/O") + (description + "The Trio project's goal is to produce a production-quality, +permissively licensed, async/await-native I/O library for Python.") + ;; Choice of either license. + (license (list license:expat license:asl2.0)))) + -- 2.26.2