From patchwork Thu Oct 21 04:01:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33971 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 8674927BBE1; Thu, 21 Oct 2021 05:04:29 +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, 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 E119A27BBE3 for ; Thu, 21 Oct 2021 05:04:28 +0100 (BST) Received: from localhost ([::1]:40242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPJb-0003KA-Uy for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 00:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPJB-0003IB-VI for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPJB-0000I2-MR for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPJB-0005dK-Iz for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 06/29] gnu: Add python-pylru. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.163478898521411 (code B ref 51314); Thu, 21 Oct 2021 04:04:01 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:03:05 +0000 Received: from localhost ([127.0.0.1]:55932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIG-0005ZC-Qb for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIB-0005YH-2x for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:03 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7B74C240029 for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:02:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634788973; bh=Umlijhon6aqw6WGwT4P6Hag+SkwQC7gd/Yt/RWLI6V0=; h=From:To:Cc:Subject:Date:From; b=Mp+NTjHe33Cb/jKer2JtoOoSDL0XkexVB70P/I+4jyEd+zQlci3PNxwYaLVSD32Fv rMa6TBN2WRqPEMvwClaZpg6AuMmcnblOsS6SYEeYb+kxmWHyrJXXTfSObsrlc8U9n1 mzM+WK5uWz7RR4DnJUI5HZFNXPXe861YMLuHhymw+eExO6A6kjgXPwibYISGCB0W7b quTzz2AD/TZDvXr+el7QvyN+qmW7LXq4BuoAqJmBpAoXTezO9p/8h4V2OwVkD5vjST 1Q4AeQ/WfscxMkOR7faea16w4KWv7WkbVokxDrT78f3R2bhr/G7qtzoePzZI2cdBkT seUCAZALlbVRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYjS4WV8z9rxM; Thu, 21 Oct 2021 06:02:52 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:37 +0000 Message-Id: <20211021040200.241873-2-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-1-monego@posteo.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pylru): New variable. --- gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4230f141bb..c48ac820a2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11192,6 +11192,35 @@ signature of a file or buffer.") provides a collection of cache libraries in the same API interface.") (license license:bsd-3))) +(define-public python-pylru + (package + (name "python-pylru") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pylru" version)) + (sha256 + (base32 "15yj46307sw703vjfkgnr04dqvaicmfcj0hc6yrciildp55r6bs9")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "test.py"))))))) + (home-page "https://github.com/jlhutch/pylru") + (synopsis "Least recently used (LRU) cache implementation") + (description + "Pylru implements a true LRU cache along with several support classes. +Pylru provides a cache class with a simple dict interface. It also provides +classes to wrap any object that has a dict interface with a cache. Both +write-through and write-back semantics are supported. Pylru also provides +classes to wrap functions in a similar way, including a function decorator.") + (license license:gpl2+))) + (define-public python-legacy-api-wrap (package (name "python-legacy-api-wrap")