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 2FC1K5BN4l6fUgAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 15:28:16 +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 mOJxJ5BN4l59XAAAbx9fmQ (envelope-from ) for ; Thu, 11 Jun 2020 15:28:16 +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 63E979404E2 for ; Thu, 11 Jun 2020 15:28:16 +0000 (UTC) Received: from localhost ([::1]:47680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjP7n-0002sJ-7q for larch@yhetil.org; Thu, 11 Jun 2020 11:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOvB-0007F7-CA for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjOvA-0004EY-TA for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjOvA-0005MD-G9 for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCH 25/26] gnu: Add python-uvloop. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 15:15:12 +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.159188848220356 (code B ref 41807); Thu, 11 Jun 2020 15:15:12 +0000 Received: (at 41807) by debbugs.gnu.org; 11 Jun 2020 15:14:42 +0000 Received: from localhost ([127.0.0.1]:37758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuf-0005I9-Nb for submit@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:42 -0400 Received: from latitanza.investici.org ([82.94.249.234]:45269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuL-0005DR-L6 for 41807@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:22 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 7152A12016A; Thu, 11 Jun 2020 15:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1591888461; bh=/jOoxPyvD8pJX8z3+yd1Q8lPII2a/YNw3gXUlYT/U/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D/qd9h/1L2RaaazaEr/LGBGVHff8n/+H4VLFYY0kOn7nHa7s7/CSe5R5LSrL1iwsO KRZT9OQHpTlpmH+z7DbGaTQZ+Wx0dGWxxNs5cnEykHsz+3k41lihaKK2fxNci7m+HM jk5CFWYwcwLXlPt+WYxo1noEddO9d/5xFiORLI6g= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 447F412015C; Thu, 11 Jun 2020 15:14:21 +0000 (UTC) From: Giacomo Leidi Date: Thu, 11 Jun 2020 17:13:56 +0200 Message-Id: <20200611151357.18843-25-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=D/qd9h/1; 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: 06WpRU3dQx9t * gnu/packages/python-xyz.scm (python-uvloop): New variable. --- gnu/packages/python-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a8a32cb550..639e6a920f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20479,3 +20479,58 @@ etc.). It's useful for building automated refactoring applications and linters. (description "@code{python-pywatchman} is a library to connect and query Watchman to discover file changes.") (license license:bsd-3))) + +(define-public python-uvloop + (package + (name "python-uvloop") + (version "0.14.0") + (source + (origin + (method git-fetch) + ;; git-reference because libuv is bundled in the PyPi package + (uri (git-reference + (url "https://github.com/MagicStack/uvloop.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cvfaddk9195ai29y8nxf92fi71nypx3fhx219q3pammjnh9z861")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Unbundle libuv. + (substitute* "MANIFEST.in" + (("recursive-include vendor/libuv.*") "") + (("recursive-exclude vendor/libuv.*") "")) + (delete-file-recursively "vendor") + #t)))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "python" "setup.py" + "build_ext" "--inplace" + "--cython-always" "--use-system-libuv"))) + (replace 'install + (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "python" "setup.py" "install" + (string-append "--prefix=" out) + "--single-version-externally-managed" + "--root=/" "--skip-build")))) + ;; Tests depend on libuv being present in-tree. + (delete 'check)))) + (inputs + `(("libuv" ,libuv))) + (native-inputs + `(("python-cython" ,python-cython))) + (home-page "https://github.com/MagicStack/uvloop") + (synopsis + "Fast implementation of asyncio event loop on top of libuv") + (description + "@code{python-uvloop} is a fast, drop-in replacement of the +built-in @code{asyncio} event loop. @code{python-uvloop} is +implemented in Cython and uses libuv under the hood.") + (license license:expat))) -- 2.26.2