From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mBcSObLkomUfPAEAqHPOHw:P1 (envelope-from ) for ; Sat, 13 Jan 2024 20:29:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mBcSObLkomUfPAEAqHPOHw (envelope-from ) for ; Sat, 13 Jan 2024 20:29:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="gID7/S1s"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705169779; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=iQg2zMuejLb9QNGAzr+iPMhP5DI/vleAfhIjA8u/OAs=; b=e3lJM2j7TlsuOssBgvE9b6VxYM+37aHUn7jKu8GBz9+i4IsP5/7uLLLwqp/9sLiJy9+/4w 9aORXjix0i7brpsJFonbSC2q4C96Ls7GFzket9hX0PeRhsjoH4S47ErMwvwg6CEC2y3eIz BSW2bZyPWZQYPy9Esv3xddaZppWfoG4L9aIINUj57F5Rpq5+4cMAVHWkzKYHGAxVbdUnDU oyET8AVNxrmvVb5xad9aCZPvHOGu+EEtWXv7LwH05WPfU3koSCPNR/tiWVisL6iZXca27o tf5u9SlYpdonhZKygs6BAB4aLVl6S3jN4sgObpQez2DH93rTy9US1+XXr2wx9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="gID7/S1s"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705169779; a=rsa-sha256; cv=none; b=UyiQlbGW7NkbQ3+dl82sXPnXEvt1kIXu77144uFHATFZ4KShP7hsd/avaoL5yUORufZtwV QlwNo8kF65xnxTlvfttaOYsotXWaYtkpOH+ZqOiweDaVvk2CfA1Wi7upK3AwqbcauLq8PU nM52XEADoCmwyqSmh6MCmdXMLaFVlxiFYt6JRDiinJ/gW/9ZocItZdCTnx8/G5qDb6HtyW UUZsahN3WdS9W06TpOzA446XcDB1yBdrqHXo9fsSgNMDjd63mxsQZ3IBHbJ2lnhyxE9Yud 4PWiWS0oyVnnNzZXYpVzXdrcHm6Isqqu6rAGDR8E7aUjuLGaDeHLYF1+lUXHjg== 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 95BEF3E295 for ; Sat, 13 Jan 2024 19:16:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOiY9-0000mp-9H; Sat, 13 Jan 2024 13:16:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOiY7-0000mc-OC for guix-patches@gnu.org; Sat, 13 Jan 2024 13:16:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOiY7-0000iZ-6X for guix-patches@gnu.org; Sat, 13 Jan 2024 13:16:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOiY5-0007C7-Qc for guix-patches@gnu.org; Sat, 13 Jan 2024 13:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68431] [PATCH 3/3] gnu: python-requests-kerberos: Enable tests. References: <87wmsd2jcn.fsf@troyfigiel.com> In-Reply-To: <87wmsd2jcn.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Jan 2024 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68431 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68431@debbugs.gnu.org Received: via spool by 68431-submit@debbugs.gnu.org id=B68431.170516971522534 (code B ref 68431); Sat, 13 Jan 2024 18:16:01 +0000 Received: (at 68431) by debbugs.gnu.org; 13 Jan 2024 18:15:15 +0000 Received: from localhost ([127.0.0.1]:41049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiXK-0005qa-ES for submit@debbugs.gnu.org; Sat, 13 Jan 2024 13:15:14 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:37562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiXI-0005Sx-3x for 68431@debbugs.gnu.org; Sat, 13 Jan 2024 13:15:12 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4TC6556PXPz9sl9 for <68431@debbugs.gnu.org>; Sat, 13 Jan 2024 19:15:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1705169705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=iQg2zMuejLb9QNGAzr+iPMhP5DI/vleAfhIjA8u/OAs=; b=gID7/S1sR000SrVy3NPiiD4kuTUJa8/EQQ4HNqcCkLNZ+mp1SVbxa2VIbgQ0dv6fav3Csd 2KqiwgfyFz185345coN6gzs8dDkEu5frEH8JMihVXGniFaPIFzGA8brP7t0zmVhC7GQhcV Cu9DCS+szyWstLrBsWO4CrH8eej1mt9H1dWbrNWhak7BeqASloZo9VZEFe3X9sDi/6f9i2 Uo6duDeyuygbb8l2YlvkR1+nmQt/Pc0kCUMXWwoRgfveJeQUE8YOkGbwr3l8lw6wQeMslt NQ2NBq+aClZMYuUUlzz6MeU2oGLG5JRFkOsT3U8f6FZnSoD5n5aApsjbrgwkIw== From: Troy Figiel Date: Sat, 13 Jan 2024 19:04:38 +0100 Message-ID: <87sf312j86.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4TC6556PXPz9sl9 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 95BEF3E295 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.99 X-Spam-Score: 3.99 X-TUID: sL4RK/AU+gvU * gnu/packages/python-web.scm (python-requests-kerberos): Enable tests. [source]: Replace the PyPI release by the Github release. [arguments]<#:phases>: Replace the default check phase with a pytest invocation. [native-inputs]: Add python-pytest and python-pytest-mock. --- gnu/packages/python-web.scm | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e13716081f..7b25bee15a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3300,13 +3300,23 @@ (define-public python-requests-kerberos (package (name "python-requests-kerberos") (version "0.14.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "requests-kerberos" version)) - (sha256 - (base32 - "1lbgjs779cjxhz07lfl9dbyp3qfh8a3ir2393042wfg518jd3afd")))) + ;; No tests in the PyPI tarball. + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/requests/requests-kerberos") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s30pcnlir3j2jmf7yh065f294cf3x0x5i3ldskn8mm0a3657mv3")))) (build-system python-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (propagated-inputs (list python-cryptography python-pyspnego python-requests @@ -3316,6 +3326,7 @@ (define-public python-requests-kerberos ;; code though. python-gssapi python-krb5)) + (native-inputs (list python-pytest python-pytest-mock)) (home-page "https://github.com/requests/requests-kerberos") (synopsis "Kerberos authentication handler for python-requests") (description "This package provides a Kerberos authentication handler for -- 2.42.0