From 67805b99176ddac138046dbf0f6ebac0c2dbf866 Mon Sep 17 00:00:00 2001
From: Peter Polidoro <peter@polidoro.io>
Date: Tue, 5 Apr 2022 14:57:16 -0400
Subject: [PATCH] gnu: Add python-ajsonrpc.
* gnu/packages/python-web.scm (python-ajsonrpc): New variable.
---
gnu/packages/python-web.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
@@ -49,6 +49,7 @@
;;; Copyright © 2021 Alice Brenon <alice.brenon@ens-lyon.fr>
;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6387,3 +6388,52 @@ (define-public python-tweepy
(description "This package provides @code{Tweepy}, an easy-to-use Python
library for accessing the Twitter API.")
(license license:expat)))
+
+(define-public python-quart
+ (package
+ (name "python-quart")
+ (version "0.17.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Quart" version))
+ (sha256
+ (base32 "0h4n2dwzmqifya1razp9s7ppr4ra23ljac9v7sl039rzp3c17wic"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ (list hypercorn
+ python-aiofiles
+ python-blinker
+ python-click
+ python-itsdangerous
+ python-jinja2
+ python-markupsafe
+ python-toml
+ python-werkzeug))
+ (home-page "https://gitlab.com/pgjones/quart/")
+ (synopsis "Python ASGI web microframework with the same API as Flask")
+ (description
+ "This package provides a Python ASGI web microframework with the same API as
+Flask")
+ (license license:expat)))
+
+(define-public python-ajsonrpc
+ (package
+ (name "python-ajsonrpc")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ajsonrpc" version))
+ (sha256
+ (base32 "17x1a4r4l428mhwn53abki9gzdzq3halyr4lj48fw3dzy0caq6vr"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ (list python-quart
+ python-sanic
+ python-tornado
+ ))
+ (home-page "https://github.com/pavlov99/ajsonrpc")
+ (synopsis "Async JSON-RPC 2.0 protocol + server powered by asyncio")
+ (description "Async JSON-RPC 2.0 protocol + server powered by asyncio")
+ (license license:expat)))
--
2.35.1