From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AKQrFwEakGGzPwAAgWs5BA (envelope-from ) for ; Sat, 13 Nov 2021 21:03:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iCjJEgEakGFzbAAAbx9fmQ (envelope-from ) for ; Sat, 13 Nov 2021 20:03:13 +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 1F9FA31A83 for ; Sat, 13 Nov 2021 21:03:13 +0100 (CET) Received: from localhost ([::1]:36208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlzF2-0003Sk-3t for larch@yhetil.org; Sat, 13 Nov 2021 15:03:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlzEs-0003Q1-Vl for guix-patches@gnu.org; Sat, 13 Nov 2021 15:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlzEs-0007qt-NL for guix-patches@gnu.org; Sat, 13 Nov 2021 15:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlzEs-0001Ff-K3 for guix-patches@gnu.org; Sat, 13 Nov 2021 15:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v2 02/24] gnu: Add python-pylru. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Nov 2021 20:03:02 +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.16368337734774 (code B ref 51314); Sat, 13 Nov 2021 20:03:02 +0000 Received: (at 51314) by debbugs.gnu.org; 13 Nov 2021 20:02:53 +0000 Received: from localhost ([127.0.0.1]:48147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzEj-0001Ev-10 for submit@debbugs.gnu.org; Sat, 13 Nov 2021 15:02:53 -0500 Received: from mout01.posteo.de ([185.67.36.65]:44791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzEg-0001EP-I0 for 51314@debbugs.gnu.org; Sat, 13 Nov 2021 15:02:51 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 84F03240027 for <51314@debbugs.gnu.org>; Sat, 13 Nov 2021 21:02:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636833764; bh=2Q4f4UJPBG0BaGBrRvMqb2rhNf2UOtnojWFVlFlJ8Wc=; h=From:To:Cc:Subject:Date:From; b=YVphR/Mzu925V/Xz+Q5np+ehlQSBA+zpf9adlOy+wdqYkNy8DLIE4K7JqB2AcmF0y f+snbsjY4l8zftwFOcFk3o23JElLC1ZJRUINWK7oxO/NXixDEZqh1IZXUozSMBOB9j jhY/9zs70Iyp2GalYYFhdWcVxRs2IhlGbfqMvHRXAalfPmpnK53hQ5lJz5eGkB+rKx QTwB/IPVlGlomyGHc4hWh3sjk9XDexvy4lst/fOhmeAsj6469KDmG+5oIjhSED2IOp Ny7pCkciBZLa8phR2gFt81YI3BaaSu2XtPwC2BmlJRBds/bqZvHMGSjEG3WzTXTyxG J3GlwuKox5UoQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hs5wL6Q92z9rxG; Sat, 13 Nov 2021 21:02:42 +0100 (CET) From: Vinicius Monego Date: Sat, 13 Nov 2021 20:02:08 +0000 Message-Id: <20211113200230.192559-2-monego@posteo.net> In-Reply-To: <20211113200230.192559-1-monego@posteo.net> References: <20211113200230.192559-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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636833793; 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=qOtj1TMAxkDDB4kKjQ6C618wtaKcIatU5EKxlQJF3GA=; b=tgKC8ZTfa4FKrreu2UHkZttHNd46/oS7mXruGhoIu5zVHyidKqtqKqo/AaJqUyuBEJTccA 7VL2g282NxNevW3kkgmK8cntgANji2J2FRnjAAVj0ZVhGMNS/WyBSHJ5i9fsQhyIPXolNO 8pnkU7Pix4L+isjbRdEp0pCxlAJf6eg5OFVGKzp8yP5ZklRftDSsc3HFRG8FeAYRK4k/Fi tdpZWIMmbOoKjpG/OlzzEtuXEZW1Zxj9ORrKol3WGNzpzoY3ZjejgH+D+ufkzu+UsoGizd BtyFhAbeMfidoM21PY9YfnhEbbfeOfbKEQUcrqU2oy1/AJZLTRyiB8wr2k6bJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636833793; a=rsa-sha256; cv=none; b=Oz9qbhnC3mVpWCV+pJGwrcYdiXtPy5tuCkawceCwD7JqDf5kXpV1aUo+XNkSrjnLR2kM+i 4FJpjGSJZOg6MafXbUv0rRoJx43ofZtfUlckivn8PdF3/EIEtH+VmFRX/W/fB3cNNkUkCU Z+34FBvvghP88QiRtn4TnlY20qECMOmgp7oCdcZc683lhVDleYzv6SsDIpKdqbG407Ma9g 9cND5UClUV5uS5+N8guRa6sUeUgBkmHFGsOnEDd19wPqs1WGvAEhk7WMbwR2AOsOvk73kQ 275VO+mEv0m0cvNw9uNEVhbUQIW+zLyLbcMQCXRZWyTuErHqdSnrkpSKFYTkcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="YVphR/Mz"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="YVphR/Mz"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1F9FA31A83 X-Spam-Score: -0.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: wxRZRgRAFo3z * 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 0b48923d86..cdd71ee2ce 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11228,6 +11228,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