From patchwork Mon Dec 27 23:30:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 35731 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 7AE8D27BBEA; Mon, 27 Dec 2021 23:33:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 354BF27BBE9 for ; Mon, 27 Dec 2021 23:33:19 +0000 (GMT) Received: from localhost ([::1]:37310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1zUU-0001QT-Cx for patchwork@mira.cbaines.net; Mon, 27 Dec 2021 18:33:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zUE-0001Q5-Og for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1zUE-0001fg-Fe for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1zUE-0000uP-Do for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v3 07/21] gnu: Add python-sentry-sdk. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.16406479323264 (code B ref 51314); Mon, 27 Dec 2021 23:33:02 +0000 Received: (at 51314) by debbugs.gnu.org; 27 Dec 2021 23:32:12 +0000 Received: from localhost ([127.0.0.1]:44584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zTQ-0000qZ-BT for submit@debbugs.gnu.org; Mon, 27 Dec 2021 18:32:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]:57097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zTF-0000oN-VM for 51314@debbugs.gnu.org; Mon, 27 Dec 2021 18:32:02 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 61639240101 for <51314@debbugs.gnu.org>; Tue, 28 Dec 2021 00:31:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640647916; bh=vcuHdQpa313eZxHHyWA7yHn9Pmj+UMOWcDlYNdkCBr0=; h=From:To:Cc:Subject:Date:From; b=VIO+b9K3VS2Y0ThfS8mcdFc1dXGRYi3ex6z5/HejrJ4P3hvbaQzxR0NAN545n05/n 4YnNSlMPY+yPlDNSFMpBrQZjt00VbqEO6FLEtcURHIaP2Ue96rMKYiYoAj091hs9OZ F8NBCL8nyPbtMv7zdnbUX1pWHp6h5FBqWt+qmw1teHsJSLGPeOldz+klaPvzAB1hvI K6xiYxPMOHjA63w0s60hdO0lhvS7r/iJTFy1QKCLn0v2MsRi1FUEOHpoAx4alPv3Cy H5OkIaGprWbxeGWHXbPY+nIsNBlYuK2MVKEpR2Zig/s4TJg8Mj0by3tPIYrs/Pz1DY E9nnRoZOJb6qw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JNDTR45Nhz9rxD; Tue, 28 Dec 2021 00:31:55 +0100 (CET) From: Vinicius Monego Date: Mon, 27 Dec 2021 23:30:30 +0000 Message-Id: <20211227233044.26475-8-monego@posteo.net> In-Reply-To: <20211227233044.26475-1-monego@posteo.net> References: <20211227233044.26475-1-monego@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-sentry-sdk): 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 4e3a5aedb5..1cb6383aa7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9901,6 +9901,69 @@ you do not want to store entirely on disk or on memory.") ;; No copyright headers in the source. The LICENSE file indicates GPL3. (license license:gpl3))) +(define-public python-sentry-sdk + (package + (name "python-sentry-sdk") + (version "1.5.1") + (source + (origin + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/getsentry/sentry-python") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "128bm136l5zprr3sqqb8j3d6k5i1fhz853mzvh3w8g0w1dw763mx")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "-k" + (string-append + ;; This test requires extra dependencies. + "not test_auto_enabling_integrations" + "_catches_import_error" + ;; Tests below run pip command. + " and not test_unhandled_exception" + " and not test_timeout_error" + " and not test_performance_no_error" + " and not test_performance_error" + " and not test_traces_sampler_gets_correct" + "_values_in_sampling_context" + " and not test_handled_exception" + ;; Tests below require network. + " and not test_crumb_capture" + " and not test_crumb_capture" + " and not test_crumb_capture_hint" + " and not test_httplib_misuse" + ;; Fails with IndexError. + " and not test_session_mode_defaults_to" + "_request_mode_in_wsgi_handler")))))))) + (native-inputs + (list python-django + python-executing + python-gevent + python-jsonschema + python-mock + python-pyrsistent + python-pytest + python-pytest-cov + python-pytest-django + python-pytest-forked + python-pytest-localserver + python-werkzeug)) + (propagated-inputs + (list python-certifi python-urllib3)) + (home-page "https://github.com/getsentry/sentry-python") + (synopsis "Python SDK for Sentry") + (description "This package provides a Python SDK for the Sentry +application monitoring and error tracking software.") + (license license:bsd-2))) + (define-public python-pep8 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated. ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking