From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:203:b4db::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CFdtBhxNymFPdgAAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 00:32:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iDHjAxxNymFgIwEA9RJhRA (envelope-from ) for ; Tue, 28 Dec 2021 00:32:44 +0100 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 CDCD713050 for ; Tue, 28 Dec 2021 00:32:43 +0100 (CET) Received: from localhost ([::1]:37092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1zTu-0001Er-Vg for larch@yhetil.org; Mon, 27 Dec 2021 18:32:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zTJ-0000KW-Cq for guix-patches@gnu.org; Mon, 27 Dec 2021 18:32:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1zTH-0001VM-70 for guix-patches@gnu.org; Mon, 27 Dec 2021 18:32:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1zTH-0000pJ-2Y for guix-patches@gnu.org; Mon, 27 Dec 2021 18:32:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v3 02/21] gnu: Add python-pylru. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 23:32:03 +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.16406479113095 (code B ref 51314); Mon, 27 Dec 2021 23:32:03 +0000 Received: (at 51314) by debbugs.gnu.org; 27 Dec 2021 23:31:51 +0000 Received: from localhost ([127.0.0.1]:44560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zT4-0000no-TX for submit@debbugs.gnu.org; Mon, 27 Dec 2021 18:31:51 -0500 Received: from mout02.posteo.de ([185.67.36.66]:42101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zSw-0000mz-AP for 51314@debbugs.gnu.org; Mon, 27 Dec 2021 18:31:46 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B5541240103 for <51314@debbugs.gnu.org>; Tue, 28 Dec 2021 00:31:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640647896; bh=3pXGCM8DHdyumXeb3D7IRW/NgnNIzpZWWn/aZuxE3T4=; h=From:To:Cc:Subject:Date:From; b=F0KyKZZ8q0W2VyoS7p7xAfm7fIs8H7MCVhZo/v91R9C6YHEZ7jLFmaglEhLz/kPOM adsmBmzR6/ENexS2/+Q2bD/1GkEAzO39KQK2AenPoKP/qBOkTaMnoC228nZQoISnlV zv2UoJQK3Fd+GsIRZgUrncdf73dqpPkUU/rMarcg6qwrC9Cb8KLgqA0lTlUZufAyoe pcoNuPI6NFq4e2rEQ2l6Y6CSpSQ4FhW01HKbsSa7tYEooVmZneeMyaCBjSN6DxOwPo AUqM45R21aVafME68IxasN0rSxV92fcHtxJW9RBlkh7+ARZpM+S1Jl2v9PgdP+MKMb MAG6tpcy5biGw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JNDT30797z9rxD; Tue, 28 Dec 2021 00:31:34 +0100 (CET) From: Vinicius Monego Date: Mon, 27 Dec 2021 23:30:25 +0000 Message-Id: <20211227233044.26475-3-monego@posteo.net> In-Reply-To: <20211227233044.26475-1-monego@posteo.net> References: <20211227233044.26475-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=1640647963; 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=CPbSzJBpk8NHdVKc9g6nZoSZL789gEDr02wuAvM+m3g=; b=OaTCUEqKGNAlqrD4KEv/VOWzIEmqg1uRmgdyS5H2l+qEjK1Gxo1denmwQQYGABWDQjjY1S XLwattBDfGLCM8LISQpIZDi2m81F8BhpkiAbx5SAhmoTRbPj4u2GqzPpwICWpE3um5xgMQ GolrCLh+YeosSu4QCvUeA62qMYGDogGcXbzVXlDjDyIB7rIMVSh3ptf0Kbd4Rj14f6gyPY vvpDO2EIY7Vnlx/P4a1ShvAkzPdO5UuUvLakyxBE4BsgQrqnnhUqb24fBl289FzeNo7+Sg bdpaiz8W+dnfhzT9+1CrG1Espk4wJ3MXsjleYT3gDipJgQHTHqhRrzxybg/cxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640647963; a=rsa-sha256; cv=none; b=WFf+8p7cNYsoUqyMmc/QGmqm5BIHCx5h7p6q9YXdjccQIy7fT1gdifZAkDL6LwsnNCvTS/ hm+sIrpA3nxlJL8eTQhHKm7+d8ye39t+i2+BI0nRVjjuta1nOce4ewQFsFME646r/qQ1qD ilq9ofp3mXKe2s0oPOJyQVwEVO4BWd/pGKG+qev5JhAv2IWmGbf9IJwsLQ4zrLOpVPGvYf 0KriM4n46/Yr+GRQIH0uBaq5vPVNf6Km7TeWF/3D/PNOn+pPkamJL7Q1T+repKAVoWDUzG dp59+gRnUhdYhsadlSX+dW7HEi2uqbOiiInjwItAe2SszSXsElzMbVb9SKiaIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=F0KyKZZ8; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=F0KyKZZ8; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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: CDCD713050 X-Spam-Score: -0.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: k2HZc0MQ3AEM * 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 499ef1e06d..937e5c3399 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11257,6 +11257,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