mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 12:01:49 +02:00
gnu: python-requests-ntlm: Rename and update to 1.3.0.
* gnu/packages/python-web.scm (python-requests_ntlm): Rename to python-requests-ntlm and update to 1.3.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Run tests with some help from <#:test-flags, #:phases>. [native-inputs]: Add python-flask, python-pytest, python-setuptools. Change-Id: Iea606b917665d3c576e9bbf41804398bc3950356 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
b7882e535a
commit
f3f4ee1df2
+29
-10
@@ -6078,23 +6078,42 @@ HTTP via a UNIX domain socket.")
|
|||||||
(define-public python-requests-unixsocket
|
(define-public python-requests-unixsocket
|
||||||
(deprecated-package "python-requests-unixsocket" python-requests-unixsocket2))
|
(deprecated-package "python-requests-unixsocket" python-requests-unixsocket2))
|
||||||
|
|
||||||
(define-public python-requests_ntlm
|
(define-public python-requests-ntlm
|
||||||
(package
|
(package
|
||||||
(name "python-requests_ntlm")
|
(name "python-requests-ntlm")
|
||||||
(version "1.2.0")
|
(version "1.3.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "requests_ntlm" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/requests/requests-ntlm")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0snsk66zdihdlyfjz2zgpyfgdyjg814m3cc4g3my09hdnb5xvagv"))))
|
||||||
"1a0np7lk8ma1plv1s4aw5q9h2z3aljprkl9qsfypqcaf0zsqbhik"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
(arguments
|
||||||
|
(list
|
||||||
|
#:test-flags
|
||||||
|
;; XXX: Connection refused.
|
||||||
|
#~(list "-k" (string-join
|
||||||
|
(list "not test_ntlm_http_with_cbt"
|
||||||
|
"test_ntlm_http_without_cbt"
|
||||||
|
"test_ntlm_https_with_cbt"
|
||||||
|
"test_ntlm_https_without_cbt")
|
||||||
|
" and not "))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'spawn-test-server
|
||||||
|
(lambda _
|
||||||
|
;; Taken from .github/workflows/ci.yml.
|
||||||
|
(spawn "python"
|
||||||
|
(list "python" "-m" "tests.test_server")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-cryptography python-pyspnego python-requests))
|
(list python-cryptography python-pyspnego python-requests))
|
||||||
|
(native-inputs (list python-flask python-pytest python-setuptools))
|
||||||
(home-page "https://github.com/requests/requests-ntlm")
|
(home-page "https://github.com/requests/requests-ntlm")
|
||||||
(synopsis
|
(synopsis "NTLM authentication support for Requests")
|
||||||
"NTLM authentication support for Requests")
|
|
||||||
(description
|
(description
|
||||||
"This package allows for HTTP NTLM authentication using the requests
|
"This package allows for HTTP NTLM authentication using the requests
|
||||||
library.")
|
library.")
|
||||||
|
|||||||
Reference in New Issue
Block a user