[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: gnu: Add python-frozenlist.
From: |
guix-commits |
Subject: |
01/05: gnu: Add python-frozenlist. |
Date: |
Mon, 17 Jan 2022 22:28:05 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit dece47497cc0da5672357b7b37fe15a956a78b01
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 17 16:39:06 2022 -0500
gnu: Add python-frozenlist.
* gnu/packages/python-web.scm (python-frozenlist): New variable.
---
gnu/packages/python-web.scm | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7fa98b7933..a73f0da35f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
;;; Copyright © 2018, 2019, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2018, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2018, 2020, 2021, 2022 Maxim Cournoyer
<maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
@@ -167,6 +167,32 @@ API rules.")
(home-page "https://praw.readthedocs.io/en/latest/")
(license license:bsd-2)))
+(define-public python-frozenlist
+ (package
+ (name "python-frozenlist")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "frozenlist" version))
+ (sha256
+ (base32 "1pkr23by7pk9lsmsh0wiqirpkq3f1f08b0615nbzysn51bk1n838"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "tests")))))))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/aio-libs/frozenlist")
+ (synopsis "List-like data structure for Python")
+ (description "@code{frozenlist.FrozenList} is a list-like structure which
+implements @code{collections.abc.MutableSequence}. It can be made immutable
+by calling @code{FrozenList.freeze}.")
+ (license license:asl2.0)))
+
(define-public python-aiohttp
(package
(name "python-aiohttp")