From patchwork Fri Aug 30 14:25:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 15184 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 C0D6217368; Fri, 30 Aug 2019 15:44:06 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 68ACB17365 for ; Fri, 30 Aug 2019 15:44:06 +0100 (BST) Received: from localhost ([::1]:32846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3i8D-00040x-VQ for patchwork@mira.cbaines.net; Fri, 30 Aug 2019 10:44:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57149) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hru-0002X8-T5 for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3hrt-0002pD-4D for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3hrs-0002oE-To for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3hrr-0003rg-NM for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37234] [PATCH 13/21] gnu: Add python-aws-xray-sdk. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Aug 2019 14:27:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37234@debbugs.gnu.org Received: via spool by 37234-submit@debbugs.gnu.org id=B37234.156717519414672 (code B ref 37234); Fri, 30 Aug 2019 14:27:11 +0000 Received: (at 37234) by debbugs.gnu.org; 30 Aug 2019 14:26:34 +0000 Received: from localhost ([127.0.0.1]:54655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hr4-0003oF-Rm for submit@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:34 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:54367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hqk-0003kL-6p for 37234@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:09 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id D7079548 for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 30 Aug 2019 10:26:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=UFBUARyvFdqzZ BWQ0Fty58LfwrwioxTh1xMxh+RgRlM=; b=j0TcZ5z4jDwRBbeCjIJo0uqthr7x5 8mPVH/L3I2cjJXOFlRUWr+Z8buzpSjx3Rftbh2gYyRi9+iMFFKlcHc4uf2qVzJxW ek0YOqoMrwzmI1IiVetZOnhgyIl1ju1wKG03ni0FN34h8q2XWz4A5w6thEH8LAj8 64abMljLgREGfSQqnBNGbrwjBBUBBMV+7nGgBmCGTLGlBl7BCC6DXL7oriEu15on oT5POcEzumiykyzLdfx1iI2qEUw0eBQryieHbQwxvHNL7WN6xpQGtdqhhKMb2NSb UqLiG07PBFt0Qhux6PB5vzrCB1qWl/VxPu8EdVCMlSVI16GzGwUiMZSzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=UFBUARyvFdqzZBWQ0Fty58LfwrwioxTh1xMxh+RgRlM=; b=bCd9fcgp kqKi5r8XwpPf/rQcOVcuSi89ujdAeyAYk284EkpB58xqLc6tsH/hcBdyfp2FEJnZ GLl6aYxT5djIUmMd7u5jekXZVi8RjK125N7XbaJOSNh5rlXlahAucIa/29YjtVGH /cPuoH7wcwYJHQ74QxkJyr/4B9tuJ+cOcQ2Xrr5jRfeOqR8TrMQPCUiyDWIKUpNn n2bHygOyKOP9il1/rS0ZlXYCVni8Qe2Lc9UZI3WmtMMKYRtM53obzLCVVaWnXPJz ezgxDy6vQUL2oOYavespljRAMRMp4SofIEGqaVi6hy1Ce8qaFwkPG5V+aMTEdj6g dI23TBqO9sIx3g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeigedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucffohhmrg hinhephhhtthhpsghinhdrohhrghdpghhithhhuhgsrdgtohhmpdhhthhtphhlihgsrdhp hienucfkphepiedvrdduiedrudelvddrudehtdenucfrrghrrghmpehmrghilhhfrhhomh epmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150]) by mail.messagingengine.com (Postfix) with ESMTPA id EFAE280066 for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:00 -0400 (EDT) From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:31 +0200 Message-Id: <20190830142539.28376-13-mbakke@fastmail.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190830142539.28376-1-mbakke@fastmail.com> References: <20190830142539.28376-1-mbakke@fastmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-aws-xray-sdk): New public variable. --- gnu/packages/python-web.scm | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d5b0c26f46..a169279fcc 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -176,6 +176,70 @@ The package includes a module with full coverage of JSON RPC versions 1.0 and comes with a SOCKS proxy client.") (license (list license:expat license:bsd-2)))) +(define-public python-aws-xray-sdk + (package + (name "python-aws-xray-sdk") + (version "2.4.2") + (home-page "https://github.com/aws/aws-xray-sdk-python") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0a4b3lay728rb43aklwi99yimn44bgjhsgd6hbqrabpbdizh2xpr")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'disable-tests + (lambda _ + (for-each delete-file + '(;; These tests require packages not yet in Guix. + "tests/ext/aiobotocore/test_aiobotocore.py" + "tests/ext/pg8000/test_pg8000.py" + "tests/ext/pynamodb/test_pynamodb.py" + "tests/ext/psycopg2/test_psycopg2.py" + "tests/ext/aiohttp/test_middleware.py" + "tests/test_async_recorder.py" + + ;; FIXME: Why is this failing? + "tests/test_patcher.py" + + ;; TODO: How to configure Django for these tests. + "tests/ext/django/test_db.py" + "tests/ext/django/test_middleware.py" + + ;; These tests want to access httpbin.org. + "tests/ext/requests/test_requests.py" + "tests/ext/httplib/test_httplib.py" + "tests/ext/aiohttp/test_client.py")))) + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append "./build/lib:.:" + (getenv "PYTHONPATH"))) + (invoke "pytest" "-vv" "tests")))))) + (native-inputs + `(;; These are required for the test suite. + ("python-flask" ,python-flask) + ("python-flask-sqlalchemy" ,python-flask-sqlalchemy) + ("python-pytest" ,python-pytest) + ("python-pytest-aiohttp" ,python-pytest-aiohttp) + ("python-requests" ,python-requests) + ("python-sqlalchemy" ,python-sqlalchemy))) + (propagated-inputs + `(("python-aiohttp" ,python-aiohttp) + ("python-botocore" ,python-botocore) + ("python-future" ,python-future) + ("python-jsonpickle" ,python-jsonpickle) + ("python-urllib3" ,python-urllib3) + ("python-wrapt" ,python-wrapt))) + (synopsis "Profile applications on AWS X-Ray") + (description + "The AWS X-Ray SDK for Python enables Python developers to record and +emit information from within their applications to the AWS X-Ray service.") + (license license:asl2.0))) + (define-public python-falcon (package (name "python-falcon")