From: Troy Figiel <troy@troyfigiel.com>
To: 68431@debbugs.gnu.org
Subject: [bug#68431] [PATCH 3/3] gnu: python-requests-kerberos: Enable tests.
Date: Sat, 13 Jan 2024 19:04:38 +0100 [thread overview]
Message-ID: <87sf312j86.fsf@troyfigiel.com> (raw)
In-Reply-To: <87wmsd2jcn.fsf@troyfigiel.com>
* 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
next prev parent reply other threads:[~2024-01-13 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-13 18:09 [bug#68431] [PATCH 0/3] Fix python-requests-kerberos build Troy Figiel
2024-01-13 17:58 ` [bug#68431] [PATCH 1/3] gnu: Add python-krb5 Troy Figiel
2024-01-13 17:59 ` [bug#68431] [PATCH 2/3] gnu: python-requests-kerberos: Fix build Troy Figiel
2024-01-13 18:04 ` Troy Figiel [this message]
2024-01-13 18:30 ` [bug#68431] Typo Troy Figiel
2024-01-15 22:02 ` bug#68431: Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sf312j86.fsf@troyfigiel.com \
--to=troy@troyfigiel.com \
--cc=68431@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).