From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oFK7GqDbMWJeTgEAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 13:44:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6LdMGKDbMWI8gQEA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 13:44:16 +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 0B06A3255C for ; Wed, 16 Mar 2022 13:44:16 +0100 (CET) Received: from localhost ([::1]:49958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUT0h-0005n3-4b for larch@yhetil.org; Wed, 16 Mar 2022 08:44:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUT0T-0005lg-Tp for guix-patches@gnu.org; Wed, 16 Mar 2022 08:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUT0T-0004Mh-Kv for guix-patches@gnu.org; Wed, 16 Mar 2022 08:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUT0T-0001eq-Iy for guix-patches@gnu.org; Wed, 16 Mar 2022 08:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v2 01/18] gnu: Add clojure-data-priority-map. References: <87y22r32hi.fsf@reilysiegel.com> In-Reply-To: <87y22r32hi.fsf@reilysiegel.com> Resent-From: Reily Siegel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Mar 2022 12:44:01 +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.16474346376337 (code B ref 53765); Wed, 16 Mar 2022 12:44:01 +0000 Received: (at 53765) by debbugs.gnu.org; 16 Mar 2022 12:43:57 +0000 Received: from localhost ([127.0.0.1]:50518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUT0P-0001e9-LD for submit@debbugs.gnu.org; Wed, 16 Mar 2022 08:43:57 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:36384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUT0N-0001ds-RU for 53765@debbugs.gnu.org; Wed, 16 Mar 2022 08:43:56 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (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-201.mailbox.org (Postfix) with ESMTPS id 4KJVM93j1xz9sRD; Wed, 16 Mar 2022 13:43:49 +0100 (CET) From: Reily Siegel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1647434629; 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; bh=GSfH4lRViY3A8yUr/A8nB1h7T+2lamCC1Z4ISoNKgWg=; b=fbt1pBH969IGKHtVb8wawi2Rc+4hcPmwdKS/5wZmAb4BJj+WteiEl9+ld97hUt+kzRstsY WMgTuqZyTrhVzag2YxVl12xgfs9Sv8BKV59L939+LRGw6h7fxKN/j9OwHkmEeBId5GV4El ur6mp/vQr+mH75qEgaX53BH3x44F+o9sbdySNM4XSXIqCZjpAfq/kriPMTKUpIlIysXHuM xms6iAV+4Du30P+0Sm4amg+1gHF0P1qaCUCAA8BomsaSFC588TTiPWgBg1AOHMjQZNkReO 3rIhgNgsww9aPJHRmiyXyLHUXcI6S5eVpUDCw/hryUQIoMYTfubPr39KU00GGQ== Date: Wed, 16 Mar 2022 13:43:46 +0100 Message-ID: <87czimdq4d.fsf@reilysiegel.com> MIME-Version: 1.0 Content-Type: text/plain 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647434656; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=GSfH4lRViY3A8yUr/A8nB1h7T+2lamCC1Z4ISoNKgWg=; b=N83mZBrlerXYaiW+wgNeHM1Znx7j2wbuUAfyZ7fWh+LmS1AkNVQk9frp2j4S3uxfktTqGY L1Sv4K8FuKABxKsmpZjgBlyNWHd0k72kbULuNjm99xqxDyw2guNSRMXbaz5UDQHzQclg+v 9a7hiVztKnXhVXPEJEChc8+kmtV1AaBKlE244BM3jUHPdKb0dpyebFj/nvMao4nryeeUK/ jMz+QcIvEZMthizQT6r/BNdcHdoR/COsMPEKgS825XieTK0LkP88fIthDXuRoZ/xCjCLeA EYAN7RFProxaLWj3cc6hdtxfm2sh8SY5Vxbza9SIfjS4g8K2rDkz1mhFF9zgaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647434656; a=rsa-sha256; cv=none; b=NI4yyiRDPPOy9zl5YcT7gIjeeGTSYGsk+YcUa2F+e8fHunNyLFaymPCFqCcA1TBGl1PmsK tuw1ZQ/xArjQfcZ/o5TSZ1E7hqeIimHRX/O2Z70nKbVICJEG/sSvugyMudSJQ1vi8Hgiu+ sXthG8tFNHg86s6mS89LizaAmwquXvl7Sip6vQDxJaO7wZTez3Ux461oR6fN7aRfHZLrqa FPjunYDloZFc//8nrB4EJQXcY2JxwJgcTVe771JiGtw79sq3qoeAf8ITW7+6u6hSN+C5iX pjwipafA8skveYWoBG42CXX5t/NAN4T7/mJmhSzlIpoPy9uBQiC67feg4PKdfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=fbt1pBH9; dmarc=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.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=fbt1pBH9; dmarc=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: 0B06A3255C X-Spam-Score: -0.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wq/wHhhuJX3D * gnu/packages/clojure.scm (clojure-data-priority-map): New variable. --- gnu/packages/clojure.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index f728083eb2..aa21ed7823 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -315,6 +315,36 @@ (define-public clojure-data-codec is on par with Java implementations, e.g., Apache commons-codec.") (license license:epl1.0))) +(define-public clojure-data-priority-map + (package + (name "clojure-data-priority-map") + (version "1.1.0") + (home-page "https://github.com/clojure/data.priority-map") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1i6mf59g2l3vamris869mndy9l1bp5mzfqv5gj5qzzb937iiykm0")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '())) + (synopsis "Clojure library implementing priority maps") + (description "A priority map is very similar to a sorted map, but whereas +a sorted map produces a sequence of the entries sorted by key, a priority map +produces the entries sorted by value. + +In addition to supporting all the functions a sorted map supports, a priority +map can also be thought of as a queue of @code{[item priority]} pairs. To +support usage as a versatile priority queue, priority maps also support +insert/peek/pop operations.") + (license license:epl1.0))) + (define-public clojure-data-xml (package (name "clojure-data-xml") -- 2.34.0 -- Reily Siegel