gnu: Add python-aiohttp-cors.

* gnu/packages/python-web.scm (python-aiohttp-cors): New variable.

Change-Id: Ic94d0b06d787564e20fbe39196d5843af4e9f3a2
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Sergio Pastor Pérez 2025-05-09 21:29:04 +02:00 committed by Sharlatan Hellseher
parent 66dd876b50
commit c64b548a09
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -72,6 +72,7 @@
;;; Copyright © 2024 Spencer King <spencer.king@geneoscopy.com> ;;; Copyright © 2024 Spencer King <spencer.king@geneoscopy.com>
;;; Copyright © 2024 Attila Lendvai <attila@lendvai.name> ;;; Copyright © 2024 Attila Lendvai <attila@lendvai.name>
;;; Copyright © 2025 Daniel Ziltener <dziltener@lyrion.ch> ;;; Copyright © 2025 Daniel Ziltener <dziltener@lyrion.ch>
;;; Copyright © 2025 Sergio Pastor Pérez <sergio.pastorperez@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1211,6 +1212,32 @@ Callback Hell.
@end itemize") @end itemize")
(license license:asl2.0))) (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 (define-public python-aiohttp-socks
(package (package
(name "python-aiohttp-socks") (name "python-aiohttp-socks")