From d7e819a3d0803aa8bb3a361803fa60697e60f8db Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Petr Hodina Date: Fri, 30 Jul 2021 17:32:07 +0200 Subject: [PATCH v2 08/19] gnu: Add python-lazy. * gnu/packages/python-xyz.scm (python-lazy): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c8230030ff..534aeabec2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16527,6 +16527,28 @@ (define-public python-typing-inspect inspection of types defined in the Python standard typing module.") (license license:expat))) +(define-public python-lazy + (package + (name "python-lazy") + (version "1.4") + (source + (origin + (method git-fetch) + (uri (git-reference ;pypi release link leads to project page + (url "https://github.com/stefanholek/lazy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1y3y35jr0nnfh32zgdrb4r4sf9v8k36j07z2m0g6kz7bf3azsgc5")))) + (build-system python-build-system) + (home-page "https://github.com/stefanholek/lazy") + (synopsis "Lazy attributes for Python objects") + (description "This library provides lazy attributes that are evaluated +only once, the first time they are used. Subsequent uses return the results +of the first call.") + (license license:bsd-2))) + (define-public python-lazy-object-proxy (package (name "python-lazy-object-proxy") -- 2.34.0