gnu: Add python-gwebsockets.

* gnu/packages/python-web.scm (python-gwebsockets): New variable.
This commit is contained in:
Ricardo Wurmus 2023-01-04 17:14:33 +01:00
parent 10e1025c63
commit 7bd9994384
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -5,7 +5,7 @@
;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2013, 2014, 2015, 2016, 2020 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016, 2017, 2019-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017, 2021 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
@ -93,6 +93,7 @@ (define-module (gnu packages python-web)
#:use-module (gnu packages databases)
#:use-module (gnu packages django)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages groff)
@ -3612,6 +3613,26 @@ (define-public python-grequests
@code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
(license license:bsd-2)))
(define-public python-gwebsockets
(package
(name "python-gwebsockets")
(version "0.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "gwebsockets" version))
(sha256
(base32
"0kgq7wssz0mrhxdafkfc9prj0qjv9z0lyivyqvjvjnnypg54di7m"))))
(build-system python-build-system)
(propagated-inputs
(list python-pygobject))
(home-page "https://github.com/sugarlabs/gwebsockets")
(synopsis "GLib based websockets server")
(description "This package provides a websocket server written in Python.
It uses GIO for network communication and hence it easily integrates with the
GLib mainloop.")
(license license:asl2.0)))
(define-public python-dpkt
(package
(name "python-dpkt")