From patchwork Sat Nov 13 20:02:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34442 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 1879027BBE1; Sat, 13 Nov 2021 20:05:55 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8B65727BBE3 for ; Sat, 13 Nov 2021 20:05:51 +0000 (GMT) Received: from localhost ([::1]:41386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlzHa-0007Dp-P3 for patchwork@mira.cbaines.net; Sat, 13 Nov 2021 15:05:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlzFu-0004um-5i for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlzFt-00081S-Tf for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlzFt-0001Kv-Oi for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v2 09/24] gnu: Add python-sentry-sdk. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Nov 2021 20:04:05 +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.16368338274997 (code B ref 51314); Sat, 13 Nov 2021 20:04:05 +0000 Received: (at 51314) by debbugs.gnu.org; 13 Nov 2021 20:03:47 +0000 Received: from localhost ([127.0.0.1]:48186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzFa-0001IW-Km for submit@debbugs.gnu.org; Sat, 13 Nov 2021 15:03:47 -0500 Received: from mout01.posteo.de ([185.67.36.65]:37497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzFH-0001H3-So for 51314@debbugs.gnu.org; Sat, 13 Nov 2021 15:03:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 54F25240027 for <51314@debbugs.gnu.org>; Sat, 13 Nov 2021 21:03:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636833802; bh=w7YUDNxlEKO8peI1t1UtEqU1SJilWGRiuYMD7lvnAOg=; h=From:To:Cc:Subject:Date:From; b=VcsiggOniHqtmOsiqHFQWOhGsQLvhJFZyH6/DDVTSXkiXvpXzuYZ5xj5+RYNTwTpI i3iras7zd2AEFB/Oxjvbe2DGuvHqLp+EhRcoRD/clJ3pUFZdHEdqhFxryjx2gMBd5s 1tCKIHcODmg2qBxH+WCOwu/zqbxMg78Krc/lLtqVtJ1Yhx153hpdL/Ms4f/oq5sa3G +MEec0JjcOAbDECqHCLjVL82rN17EJ6R4sdW6oUN4S+99Anjkmr4tnMoXZHxuRiz6B cxN9sq+LZw1mMxKZ3GoeH8Ycq/ezrH7xvrhjFaXNqrc2EpKnTiF1zjapns1oy+ly0F fNehZXmYQGvEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hs5x533rbz9rxL; Sat, 13 Nov 2021 21:03:21 +0100 (CET) From: Vinicius Monego Date: Sat, 13 Nov 2021 20:02:15 +0000 Message-Id: <20211113200230.192559-9-monego@posteo.net> In-Reply-To: <20211113200230.192559-1-monego@posteo.net> References: <20211113200230.192559-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 | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 19e2159b9b..fd3f766f1e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -142,6 +142,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages dbm) + #:use-module (gnu packages django) #:use-module (gnu packages djvu) #:use-module (gnu packages docker) #:use-module (gnu packages enchant) @@ -9838,6 +9839,70 @@ 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.4.3") + (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 "1iyb0amgf03h61jw4hpdbm6h4wyh8n43bnk116ywwc0bl5x3mldx")))) + (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 + `(("python-django" ,python-django) + ("python-executing" ,python-executing) + ("python-gevent" ,python-gevent) + ("python-jsonschema" ,python-jsonschema) + ("python-mock" ,python-mock) + ("python-pyrsistent" ,python-pyrsistent) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-django" ,python-pytest-django) + ("python-pytest-forked" ,python-pytest-forked) + ("python-pytest-localserver" ,python-pytest-localserver) + ("python-werkzeug" ,python-werkzeug))) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-urllib3" ,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