From patchwork Sat Sep 18 19:01:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33189 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7216F27BBE3; Sat, 18 Sep 2021 20:20:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1AF1D27BBE1 for ; Sat, 18 Sep 2021 20:20:03 +0100 (BST) Received: from localhost ([::1]:39638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRfsY-0005dS-6a for patchwork@mira.cbaines.net; Sat, 18 Sep 2021 15:20:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRfb8-00076Q-Ed for guix-patches@gnu.org; Sat, 18 Sep 2021 15:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRfb8-0000nX-2w for guix-patches@gnu.org; Sat, 18 Sep 2021 15:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRfb7-0004Bf-VJ for guix-patches@gnu.org; Sat, 18 Sep 2021 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50663] [PATCH 07/19] gnu: Add python-lazy. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "50663@debbugs.gnu.org" <50663@debbugs.gnu.org> Received: via spool by 50663-submit@debbugs.gnu.org id=B50663.163199168714344 (code B ref 50663); Sat, 18 Sep 2021 19:02:01 +0000 Received: (at 50663) by debbugs.gnu.org; 18 Sep 2021 19:01:27 +0000 Received: from localhost ([127.0.0.1]:36897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRfaY-0003j8-Py for submit@debbugs.gnu.org; Sat, 18 Sep 2021 15:01:27 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:63677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRfaV-0003bt-JV for 50663@debbugs.gnu.org; Sat, 18 Sep 2021 15:01:24 -0400 Date: Sat, 18 Sep 2021 19:01:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631991677; bh=mXfl3sXkMLAfV/CZLQx2Z3+Qs46NKwEv3Gq2e07wqBI=; h=Date:To:From:Reply-To:Subject:From; b=RAMK9XnGfPy/T7y2qjXwW1E3jx1VGL6VvRnCTGz0C/HwQtawHxC09Ld5pd3US9NVV rzlrdzgHnmN5VjgwNM6bkH5gXQ8p6IUm9tbKpgGcMGeQXSw0vczGNQdfr/l5E7TyDj IsQMqWEZAOIEFeNTKIfcCBYcAewPi4C2gIDmsNg0= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-lazy): New variable. --- 2.32.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1b1a26f603..8f92800112 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15254,6 +15254,28 @@ feels like an AST.") 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")