From patchwork Fri Feb 4 00:24:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reily Siegel X-Patchwork-Id: 36965 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 84BA927BBEA; Fri, 4 Feb 2022 00:25:11 +0000 (GMT) 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 451CB27BBE9 for ; Fri, 4 Feb 2022 00:25:11 +0000 (GMT) Received: from localhost ([::1]:46846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFmPW-0000VB-Dw for patchwork@mira.cbaines.net; Thu, 03 Feb 2022 19:25:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFmPO-0000Ui-1N for guix-patches@gnu.org; Thu, 03 Feb 2022 19:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFmPN-0001iO-OY for guix-patches@gnu.org; Thu, 03 Feb 2022 19:25:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFmPN-0008WE-L1 for guix-patches@gnu.org; Thu, 03 Feb 2022 19:25:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH 01/17] 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: Fri, 04 Feb 2022 00:25: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 Received: via spool by 53765-submit@debbugs.gnu.org id=B53765.164393426232641 (code B ref 53765); Fri, 04 Feb 2022 00:25:01 +0000 Received: (at 53765) by debbugs.gnu.org; 4 Feb 2022 00:24:22 +0000 Received: from localhost ([127.0.0.1]:58286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFmOk-0008UP-3k for submit@debbugs.gnu.org; Thu, 03 Feb 2022 19:24:22 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:51118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFmOh-0008UB-U5 for 53765@debbugs.gnu.org; Thu, 03 Feb 2022 19:24:20 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3: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-202.mailbox.org (Postfix) with ESMTPS id 4JqbrF3RZlz9sSs for <53765@debbugs.gnu.org>; Fri, 4 Feb 2022 01:24:13 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1643934250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/ohXin+yWjGMM7+KXV0snBf8Zu54JB09toBxDI+Ff8g=; b=ViJUCrcQkRXR8/sbQ2na5ZJSR4IGgwMnKBizeIpglAA2M0KmLAS3vQCvINzHx1kdE2j47L mlSLF6S9ZgvowKnWrumRKUXjfS7JzhJKhO6ZsUv3cAI9XKDrF2oxs09jAYXndlACzrx6gg uSIfx5MKq6hNHW7yW+kBkD3TRlq4/DEgP2SnbZtJ2hbM8zTSB63VmPP3uN5J9493Foh2vK K2YFIxunZ4yOJ7K15xd3JpboFb/08PL/+pM5dYl9Mjr2Q30p0gh4HsZL0tvztJk6EhqIuU jBWV4J6Ba7bj8RtxgBQKiMimMnVrS1H9aK2gd79CHOHHnZrBQfO6cfpHxLmu4A== From: Reily Siegel Date: Thu, 03 Feb 2022 19:24:05 -0500 Message-ID: <87wnib32e2.fsf@reilysiegel.com> 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 (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..3cf287140d 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 [item priority] pairs. To support +usage as a versatile priority queue, priority maps also support conj/peek/pop +operations.") + (license license:epl1.0))) + (define-public clojure-data-xml (package (name "clojure-data-xml")