Archived
1
0
Fork 0

gnu: python-websocket-client: Update to 1.2.3.

* gnu/packages/python-web.scm (python-websocket-client): Update to 1.2.3.
[arguments]: Override check phase.
[native-inputs]: Add PYTHON-WEBSOCKETS and PYTHON-PYTEST.
[propagated-inputs]: Remove.
[properties]: Remove.
(python2-websocket-client): Remove variable.
(python-websocket-client-0.59): New variable.
* gnu/packages/docker.scm (docker-compose)[inputs]: Change from
PYTHON-WEBSOCKET-CLIENT to PYTHON-WEBSOCKET-CLIENT-0.59.
This commit is contained in:
Marius Bakke 2022-01-12 20:37:08 +01:00
parent d08eb54acb
commit 4ccb22802c
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
2 changed files with 19 additions and 16 deletions

View file

@ -126,7 +126,7 @@ client.")
python-requests python-requests
python-six python-six
python-texttable python-texttable
python-websocket-client)) python-websocket-client-0.59))
(home-page "https://www.docker.com/") (home-page "https://www.docker.com/")
(synopsis "Multi-container orchestration for Docker") (synopsis "Multi-container orchestration for Docker")
(description "Docker Compose is a tool for defining and running (description "Docker Compose is a tool for defining and running

View file

@ -2414,13 +2414,13 @@ verification of the SSL peer.")
(define-public python-websocket-client (define-public python-websocket-client
(package (package
(name "python-websocket-client") (name "python-websocket-client")
(version "0.59.0") ; tests hang on newer versions (version "1.2.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "websocket-client" version)) (uri (pypi-uri "websocket-client" version))
(sha256 (sha256
(base32 "0p0cz2mdissq7iw1n7jrmsfir0jfmgs1dvnpnrx477ffx9hbsxnk")))) (base32 "1xba9z6b211pandrlk2l5p8wj6gn7yfkpq1sxfbqjl6c19n8258k"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -2429,26 +2429,29 @@ verification of the SSL peer.")
(lambda _ (lambda _
;; This test requires networking. ;; This test requires networking.
(substitute* "websocket/tests/test_http.py" (substitute* "websocket/tests/test_http.py"
(("def testConnect") "def _testConnect"))))))) (("def testConnect") "def _testConnect"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "websocket/tests")))))))
(native-inputs (native-inputs
(list python-pysocks)) (list python-pysocks python-pytest python-websockets))
(propagated-inputs
(list python-six))
(home-page "https://github.com/websocket-client/websocket-client") (home-page "https://github.com/websocket-client/websocket-client")
(synopsis "WebSocket client for Python") (synopsis "WebSocket client for Python")
(description "The Websocket-client module provides the low level APIs for (description "The Websocket-client module provides the low level APIs for
WebSocket usage in Python programs.") WebSocket usage in Python programs.")
(properties `((python2-variant . ,(delay python2-websocket-client))))
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define-public python2-websocket-client (define-public python-websocket-client-0.59
(let ((base (package-with-python2 (package
(strip-python2-variant python-websocket-client)))) (inherit python-websocket-client)
(package/inherit base (version "0.59.0")
(native-inputs (source
`(("python2-backport-ssl-match-hostname" (origin
,python2-backport-ssl-match-hostname) (method url-fetch)
,@(package-native-inputs base)))))) (uri (pypi-uri "websocket-client" version))
(sha256
(base32 "0p0cz2mdissq7iw1n7jrmsfir0jfmgs1dvnpnrx477ffx9hbsxnk"))))))
(define-public python-purl (define-public python-purl
(package (package