From patchwork Mon Aug 5 05:16:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 66745 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 A661F27BBEB; Mon, 5 Aug 2024 06:19:38 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 5D68B27BBE2 for ; Mon, 5 Aug 2024 06:19:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saq7V-00057d-60; Mon, 05 Aug 2024 01:18:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1saq7J-00055G-8G for guix-patches@gnu.org; Mon, 05 Aug 2024 01:18:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saq7F-0000mF-Lm for guix-patches@gnu.org; Mon, 05 Aug 2024 01:18:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=t7vbGa3TNHcQBgPLmAboDj8ENBBRawEOlYnuN0QHmA8=; b=odXIhOrGr7OIcX/VqV5tEvoa31WAPGsoPovS27RRHJjZQSlpkpsfR5qBn1DKaqvlF842DW6C7MEfBoJX+nshenYFX2ssadOnwtkTAXHtFz2Z7YrNFYPWE95hXlCpyC73kXCeuQ63xQNV4e2QV2HnCItsRu+DYHWKRN+sSs3an8McKRnY93YbhJmriVph7yjH1HyRVCiJgZv9MoHdZ24HVrwgLkjZiRqSbS85MVs4liD7YCFjlgcs0nlnVPkmbyf/JFh5R7DBhx0vDw8lcgOVssl9O0svuw2wyoKPDKNmBItB9HpcXyrfMGahmXY+kHC2+Kyn3QB9pjOJHN/Gqv0B/w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saq7b-0005Tl-JD for guix-patches@gnu.org; Mon, 05 Aug 2024 01:19:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72463] [PATCH 04/10] gnu: Add clojure-core-memoize. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Aug 2024 05:19:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72463 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72463@debbugs.gnu.org Cc: Roman Scherer , andrew@trop.in Received: via spool by 72463-submit@debbugs.gnu.org id=B72463.172283511820874 (code B ref 72463); Mon, 05 Aug 2024 05:19:03 +0000 Received: (at 72463) by debbugs.gnu.org; 5 Aug 2024 05:18:38 +0000 Received: from localhost ([127.0.0.1]:57739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saq7B-0005QY-Eo for submit@debbugs.gnu.org; Mon, 05 Aug 2024 01:18:37 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:59773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saq79-0005PS-5l for 72463@debbugs.gnu.org; Mon, 05 Aug 2024 01:18:35 -0400 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-428101fa30aso68567005e9.3 for <72463@debbugs.gnu.org>; Sun, 04 Aug 2024 22:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1722835027; x=1723439827; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t7vbGa3TNHcQBgPLmAboDj8ENBBRawEOlYnuN0QHmA8=; b=MTBjPVzmuBEjU3RhTVaG+yJfEtyjb8vdcS2pR7FI5hyKqIpgkA/gPIFz+MGzPcGhVv bvHTrfj+/694LK7w2o8Kes0AzZhdIX2Kt5iF3lLaEN/x6jRUBoSsTPMeR8NMdXnmGIk9 TrLtZwUhOeVLQGXoTjX4m5cJxU4qKTZTbD3NRQwBhtLNWUXM1HqT+xRPIPWzkW9pIXFw xVVITVUrWKCqxxlV/kgA8YMJbNVEXBMc5hg8bqd0ezUHZBaTi/4/XPPdjPDDgRrEuVsA AGMPm1AH+dBRjxhblJmw/oBpJikpaCJvJKLtFzENlN0bJuClKllPieijd44+hkFarGv3 EknA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722835027; x=1723439827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t7vbGa3TNHcQBgPLmAboDj8ENBBRawEOlYnuN0QHmA8=; b=IExB1+lIiyMIpVVHE0UO4U4S7nscE8AegvlCxFPwcflDo3X5MtoXRWZ5HVW3AOFOyh ekEKn3eRrQzcUrCR6mGSJWHBnPd6IY35jUuc8IHCLd4xxJncFGShPY6DgIhNnlUrDoad lYo5B+n12WacDGQvEm1PPmHxJ/yzd363FZES11UnzJ+CbXrNrhf50OzOWfbF6g9K4nvP AtEFCzUbQFgM6QfE1qTIB4EeI7eotIcU/Wkcq/yICKRMis5tK2KuGO+R1I9/8+/RaS1p OsXjlRujZcRWp80SNpgPj2rPfEVxsEHHn/M3JIuidSgM0I1jnUQgVG79f9wcIEMxa5IO 596A== X-Gm-Message-State: AOJu0YxY4PxFG8K7fCdYa6vcKdxB0ZT6aFQcAAA9x5K/ghVJEVAZ9vxh 5d9MMwGN9AviRjYvcCL4JCWHpf+r5iYQWFQiQTZnUTC3UNi8vdH48urT2eH5uW+XIUaB5pZby9E Q X-Google-Smtp-Source: AGHT+IGB8QDViC78gpxevZZdXaCTz/abzDB2sHYd+HcW3vODf+Sh8LeWQPhAKaPIcEQah8YQ9PB0xQ== X-Received: by 2002:adf:fac3:0:b0:367:9769:c330 with SMTP id ffacd0b85a97d-36bbc185864mr6255035f8f.61.1722835027205; Sun, 04 Aug 2024 22:17:07 -0700 (PDT) Received: from localhost.localdomain ([2a01:599:924:598d:eaec:5b29:b4bd:5944]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd0261c2sm8556021f8f.57.2024.08.04.22.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 22:17:06 -0700 (PDT) From: Roman Scherer Date: Mon, 5 Aug 2024 07:16:48 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/clojure.scm (clojure-core-memoize): New variable. --- gnu/packages/clojure.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 44f9cc4691..12a54a3977 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -370,6 +370,33 @@ (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.1.266") + (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 + "0nys79zrvcnwgyxb91zlyl3nb4p6r6y4n5rbdvzqkvsxxazi9ji0")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '("docs"))) + (propagated-inputs (list clojure-core-cache)) + (synopsis "Memoization framework for Clojure") + (description + "A manipulable, pluggable, memoization framework for Clojure implementing +some common memoization caching strategies, such as First-in-first-out, +Least-recently-used, Least-used and Time-to-live.") + (home-page "https://github.com/clojure/core.memoize") + (license license:epl1.0))) + (define-public clojure-data-codec (package (name "clojure-data-codec")