From 8ce1a3a51e000672e9aa45e52d934e02a0a78dad Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Fri, 30 Jul 2021 17:32:07 +0200 Subject: [PATCH 08/20] gnu: Add python-lazy. * gnu/packages/python-xyz.scm (python-lazy): New variable. diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d36eb615fd..2b5e2a94b2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16095,6 +16095,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 "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