1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-ws4py: Update to 0.6.0.

* gnu/packages/python-web.scm (python-ws4py): Update to 0.6.0.
[build-system]: Switch to pyproject-build-system.
[arguments]: Use gexps.
<#:phases>: remove 'python3.7-compatibility phase.
[native-inputs]: Add python-setuptools and python-pytest.

Change-Id: Ia1c4d66f329ca0acd32d2b934836347b19cb711a
This commit is contained in:
Hugo Buddelmeijer
2025-10-23 21:28:25 +02:00
committed by Sharlatan Hellseher
parent d5e5bbc5cc
commit 9324583cdb

View File

@@ -8836,37 +8836,33 @@ such as IoT applications or multi-user database-driven business applications.")
(define-public python-ws4py
(package
(name "python-ws4py")
(version "0.5.1")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ws4py" version))
(method git-fetch)
(uri (git-reference
(url "https://github.com/Lawouach/WebSocket-for-Python")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
(build-system python-build-system)
"00y6s8gk20936njqbxr8vjliviiz7r7pqrlwg7xi8zzs6903xvv6"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'python3.7-compatibility
(lambda _
(substitute* '("ws4py/server/tulipserver.py"
"ws4py/async_websocket.py")
(("asyncio.async")
"asyncio.ensure_future"))
#t))
;; We don't have a package for cherrypy.
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-cherrypy-support
(lambda _
(delete-file "ws4py/server/cherrypyserver.py")
#t)))))
(delete-file "test/test_cherrypy.py"))))))
(native-inputs (list python-setuptools python-pytest))
(propagated-inputs
(list python-gevent python-tornado))
(home-page "https://github.com/Lawouach/WebSocket-for-Python")
(synopsis "WebSocket client and server library")
(description
"This package provides a WebSocket client and server library for
Python.")
"This package provides a WebSocket client and server library for Python.")
(license license:bsd-3)))
(define-public python-slowapi