From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uCgCLDdWLV8ILQAA0tVLHw (envelope-from ) for ; Fri, 07 Aug 2020 13:25:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0Fi+JzdWLV/9IgAAbx9fmQ (envelope-from ) for ; Fri, 07 Aug 2020 13:25:11 +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 3BB4A9404D9 for ; Fri, 7 Aug 2020 13:25:11 +0000 (UTC) Received: from localhost ([::1]:55296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k42Mw-0000kv-1e for larch@yhetil.org; Fri, 07 Aug 2020 09:25:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42Mq-0000io-9u for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k42Mq-0005kg-0w for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k42Mp-00048S-U6 for guix-patches@gnu.org; Fri, 07 Aug 2020 09:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42743] [PATCH 3/4] gnu: Add python-trio. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Aug 2020 13:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42743 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42743@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159680669215826 (code B ref -1); Fri, 07 Aug 2020 13:25:03 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2020 13:24:52 +0000 Received: from localhost ([127.0.0.1]:56189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k42Md-00047C-NB for submit@debbugs.gnu.org; Fri, 07 Aug 2020 09:24:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:57680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k42Mb-000474-TJ for submit@debbugs.gnu.org; Fri, 07 Aug 2020 09:24:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42Mb-0000fP-Mr for guix-patches@gnu.org; Fri, 07 Aug 2020 09:24:49 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k42MZ-0005jf-Cm for guix-patches@gnu.org; Fri, 07 Aug 2020 09:24:49 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8C46216005F for ; Fri, 7 Aug 2020 15:24:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1596806685; bh=vfNuFjHDN6aWfwCxUDonge8o4nl7RHywisVyqHWCvUQ=; h=From:To:Cc:Subject:Date:From; b=VMhC0m4kbCyKLCA9qMyF1I9eh/mdOpxphljs/bV5ezdvCYGXdVPlcP60/LB0TjO6G t1TuSHK3QD0Obmebp3TamsBQoaShvdRYqVMGAAeXSEUd3dkgoMeu2FZcdfGRxUE9BV f0bIJpYLLrdghmWhphZ9IfFwrf3xhYHn6vakT/1Oi1yVwmJVYiwJcRqtm0YkTZsMol 5BSZAY48twBYr/bhpsUOh50bbmB8FEx8e4sUBd5YRda8DNddR1zFp1qGBpYwzWAV/r terGQTJtIE6xKPtYZcBTxpqFEVtGPdttGt5JOjRPQAUrYdl2wRwnsskrTEO38WgRk0 iAmd8q0gS/rxQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BNR0r1CZfz6tmN; Fri, 7 Aug 2020 15:24:43 +0200 (CEST) From: Vinicius Monego Date: Fri, 7 Aug 2020 10:24:15 -0300 Message-Id: <20200807132416.49309-3-monego@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200807132416.49309-1-monego@posteo.net> References: <20200807132416.49309-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/07 09:24:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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=posteo.net header.s=2017 header.b=VMhC0m4k; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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: 5.09 X-TUID: xCvGXYbAYH/X * gnu/packages/python-xyz.scm (python-trio): New variable. --- gnu/packages/python-xyz.scm | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e15f1a495e..302366411a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18962,7 +18962,68 @@ project.") ;; Either license applies. (license (list license:expat license:asl2.0)))) +(define-public python-trio + (package + (name "python-trio") + (version "0.16.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trio" version)) + (sha256 + (base32 "0g6gkwz6i05rm9ym4l4imxakzld7qcgxhb21kprilchcav87s1nz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'change-home + (lambda _ + ;; Tests require a writable home. + (setenv "HOME" "/tmp") + #t)) + (replace 'check + (lambda _ + (invoke "pytest" "-vv" "-k" + (string-append + ;; This test times out. + "not test_ki_protection_works" + ;; Assertion errors. + " and not test_guest_mode_ki" + " and not test_run_in_trio_thread_ki" + ;; These try to raise KeyboardInterrupt which does not work + ;; in the build environment. + " and not test_ki_self" + " and not test_ki_wakes_us_up" + ;; Failure in name resolution. + " and not test_getnameinfo" + " and not test_SocketType_resolve" + ;; OSError: protocol not found. + " and not test_getprotobyname"))))))) + (native-inputs + `(("python-astor" ,python-astor) + ("python-ipython" ,python-ipython) + ("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))) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("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 "Friendly Python library for async concurrency and I/O") + (description + "Trio strives to be a production-quality, async/await-native I/O library +for Python. Like all async libraries, its main purpose is to help you write +programs that do multiple things at the same time with parallelized I/O.") + ;; Either license applies. + (license (list license:expat license:asl2.0)))) + (define-public python-humanize (package (name "python-humanize") -- 2.20.1