From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lnZJF87mcGFr1QAAgWs5BA (envelope-from ) for ; Thu, 21 Oct 2021 06:04:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eKuDEs7mcGHhNAAAB5/wlQ (envelope-from ) for ; Thu, 21 Oct 2021 04:04:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 263C4A085 for ; Thu, 21 Oct 2021 06:04:30 +0200 (CEST) Received: from localhost ([::1]:40242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPJd-0003KA-BQ for larch@yhetil.org; Thu, 21 Oct 2021 00:04:29 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634789070; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zwz7b2KXrbYsv/wwHZ2EPwnwWGomKNmi5sA5FxM2DVc=; b=afKbIU9/L1vPRR5MRbRyO9rNCek5B3vfyjmUVf8v6p+vSjBrmV6YtljtRyU+GbZwuIfy2p imdczmpqKLd6QxM3FoaGOP63EKTCjHp5DAyWFNeczmStTgZCbgj5aBvsc4qMc+C1xgRUTY hOharNOdMJ4wNB/W/Q3GLjFCHan9Bhllmx+TzyFjF2MtMEsDovJTrJR+C8kX9UkSyYBGwx Qblme099JtYwGYgmLqXKkDG38R29A7vgjyoVjfz57r0b2nNFM31GuuLQYeKHFQ/yyhKC7Z xt0peCupsktDTVOn5pRmu03lrAgE5iHj7ltHAFvuuBhyfkyYb1gcHOdVVexKfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634789070; a=rsa-sha256; cv=none; b=eXKZgS+9A5JwfFvbBPI1Y4pXz7FFyFK6MRluso3dGpRPyYtZBRF3KNnxDnBhle/0fhuf1z 6UE8KNBBbG19Hit0JMCYxzDTbyRNoEcI3lrL/0C7+cv7XHj2AeQQup+dp3WT5g8PWMaXCr +zX7zN8NHuu4tC4WB38PTs+axLX7woicJEHCCOdVYrdUmojINB8TzDWGgtP2OqTyiU1IOX Pu4Vf4DpNBAR0IbEwXm0moKu59Z8FPioRMScR7pL3oUFQXruVI/wj9q1wrgeOZ43lw4QEw ijACj5Qk4jYmMUBlptaohbRM+TJfiPO/I1SBnuba8Yhb5YPfahT0NRgwAiJ0Bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Mp+NTjHe; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Mp+NTjHe; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 263C4A085 X-Spam-Score: 3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: IaOxOVOgtkn+ * 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") -- 2.30.2