~ruther/guix-local

9324583cdbee4bdda542074ee5aa72fce0a0f0ae — Hugo Buddelmeijer 4 months ago d5e5bbc
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
1 files changed, 14 insertions(+), 18 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +14 -18
@@ 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