From patchwork Sun Jan 16 01:51:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reily Siegel X-Patchwork-Id: 38351 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 A6D2D27BBEA; Wed, 6 Apr 2022 13:42:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6F14627BBE9 for ; Wed, 6 Apr 2022 13:42:20 +0100 (BST) Received: from localhost ([::1]:59450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nc4zL-0000uL-3i for patchwork@mira.cbaines.net; Wed, 06 Apr 2022 08:42:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc4yc-0008Nl-K1 for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:35 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nc4y8-0000UC-Jy for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nc4y8-0000GZ-If for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v3 05/17] gnu: Add clojure-core-memoize. References: <87y22r32hi.fsf@reilysiegel.com> Resent-From: Reily Siegel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Apr 2022 12:41:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53765@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 53765-submit@debbugs.gnu.org id=B53765.1649248857945 (code B ref 53765); Wed, 06 Apr 2022 12:41:04 +0000 Received: (at 53765) by debbugs.gnu.org; 6 Apr 2022 12:40:57 +0000 Received: from localhost ([127.0.0.1]:57253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4y1-0000FB-Bs for submit@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:57 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:46765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4y0-0000Em-Ag for 53765@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:56 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4KYPJ23H2Vz9sR8; Wed, 6 Apr 2022 14:40:50 +0200 (CEST) From: Reily Siegel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1649248848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=9ZanO+Yf0ZsASWH5XpxvTUQvxq7vKcZbRqGwyMkszik=; b=LOa7wL0Qxvd0NU6Lj6Lou34gPU2/zuDF8+ROPhIbTVOzi40oKcSA1OtAqhKSecIs7BDqAx dvWW+vruzgsrUWJhX4UuEwCzuBQIKaB34rDLs3v9VqOXlVYESjyxqtsFJFn++2bJ15EO/0 sVq8PQqRPO2alarcUWnftF78lze/IEUPNc01fe1JHUBU9LM/JID4pAQ2clBU5Oh0fzkYiE m2EjU2vvhYYTkkp0hGIDaJ4f26lPeF3YZWSIWDGWdGkK+4FsZUeciXd0Q7VsYJNRMhEocV TZCyPLzBveMwol4nleKJDZvpMHaCuewMh8v+v0hS7xpQepH6IRDcD6kM9YkTmw== In-Reply-To: Date: Sat, 15 Jan 2022 20:51:22 -0500 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" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/clojure.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 9063776921..0b4c7a623a 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -338,6 +338,40 @@ (define-public clojure-core-match (home-page "https://github.com/clojure/core.match") (license license:epl1.0)))) +(define-public clojure-core-memoize + (package + (name "clojure-core-memoize") + (version "1.0.253") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/core.memoize") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1qky54v114sh3xn0lffwy7xx3wnnayk07fr2nvhd4lih84sv6rdz")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '("docs") + ;; Tests fail when AOT'd. + #:aot-exclude '(#:all))) + (propagated-inputs (list clojure-core-cache)) + (home-page "https://github.com/clojure/core.memoize") + (synopsis "Customisable memoization library supporting automatic removal") + (description "This memoization library supports various cache replacement +strategies: + + @itemize + @item @acronym{FIFO, first in first out} + @item @acronym{LRU, least recently used} + @item @acronym{TLL, time to live} + @item no replacement, the memoisation cache can grow indefinitely + @end itemize") + (license license:epl1.0))) + (define-public clojure-data-codec (package (name "clojure-data-codec")