guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: gnu: python-requests-kerberos: Enable tests.


From: guix-commits
Subject: 04/04: gnu: python-requests-kerberos: Enable tests.
Date: Mon, 15 Jan 2024 16:58:23 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 19db1551dc6f6180d2cda9084c2dec37bf4923c9
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sat Jan 13 19:04:38 2024 +0100

    gnu: python-requests-kerberos: Enable tests.
    
    * gnu/packages/python-web.scm (python-requests-kerberos): Enable tests.
    [source]: Replace the PyPI release by the Github release.
    [build-system]: Swap to pyproject-build-system.
    [native-inputs]: Add python-pytest and python-pytest-mock.
    
    Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Change-Id: Iea750cf722293c4054a6c6e43787806f8f2fd5e2
---
 gnu/packages/python-web.scm | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d54a90f848..418100c084 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3300,16 +3300,21 @@ than Python’s urllib2 library.")
   (package
     (name "python-requests-kerberos")
     (version "0.14.0")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "requests-kerberos" version))
-              (sha256
-               (base32
-                "1lbgjs779cjxhz07lfl9dbyp3qfh8a3ir2393042wfg518jd3afd"))))
-    (build-system python-build-system)
+    ;; 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 pyproject-build-system)
      (propagated-inputs (list python-cryptography
                               python-pyspnego
                               python-requests))
+    (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]