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
This commit is contained in:
Troy Figiel 2024-01-13 19:04:38 +01:00 committed by Sharlatan Hellseher
parent da3764b75c
commit 19db1551dc
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3300,16 +3300,21 @@ (define-public python-requests-kerberos
(package (package
(name "python-requests-kerberos") (name "python-requests-kerberos")
(version "0.14.0") (version "0.14.0")
(source (origin ;; No tests in the PyPI tarball.
(method url-fetch) (source
(uri (pypi-uri "requests-kerberos" version)) (origin
(sha256 (method git-fetch)
(base32 (uri (git-reference
"1lbgjs779cjxhz07lfl9dbyp3qfh8a3ir2393042wfg518jd3afd")))) (url "https://github.com/requests/requests-kerberos")
(build-system python-build-system) (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 (propagated-inputs (list python-cryptography
python-pyspnego python-pyspnego
python-requests)) python-requests))
(native-inputs (list python-pytest python-pytest-mock))
(home-page "https://github.com/requests/requests-kerberos") (home-page "https://github.com/requests/requests-kerberos")
(synopsis "Kerberos authentication handler for python-requests") (synopsis "Kerberos authentication handler for python-requests")
(description "This package provides a Kerberos authentication handler for (description "This package provides a Kerberos authentication handler for