From c64b548a09db6256c48a9d618c992c22e140523a Mon Sep 17 00:00:00 2001 From: Sergio Pastor Pérez Date: Fri, 9 May 2025 21:29:04 +0200 Subject: gnu: Add python-aiohttp-cors. * gnu/packages/python-web.scm (python-aiohttp-cors): New variable. Change-Id: Ic94d0b06d787564e20fbe39196d5843af4e9f3a2 Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0e972958aa9..1895eb94cfe 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -72,6 +72,7 @@ ;;; Copyright © 2024 Spencer King ;;; Copyright © 2024 Attila Lendvai ;;; Copyright © 2025 Daniel Ziltener +;;; Copyright © 2025 Sergio Pastor Pérez ;;; ;;; This file is part of GNU Guix. ;;; @@ -1211,6 +1212,32 @@ Callback Hell. @end itemize") (license license:asl2.0))) +(define-public python-aiohttp-cors + (package + (name "python-aiohttp-cors") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp_cors" version)) + (sha256 + (base32 "00qlzc2y65bkl1a5f5v83mmjlrhzmx3a2ngq2pm3jjdnhk5zkb6c")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f)) ; network access is required to run tests + (native-inputs + (list python-setuptools + python-wheel)) + (propagated-inputs + (list python-aiohttp)) + (home-page "https://github.com/aio-libs/aiohttp-cors") + (synopsis "CORS support for aiohttp") + (description + "This library implements @acronym{CORS, Cross Origin Resource Sharing} +support for aiohttp asyncio-powered asynchronous HTTP server.") + (license license:asl2.0))) + (define-public python-aiohttp-socks (package (name "python-aiohttp-socks") -- cgit v1.3