From patchwork Sat Jan 15 22:32:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reily Siegel X-Patchwork-Id: 38349 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 0BD3127BBEB; Wed, 6 Apr 2022 13:42:06 +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=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 C65A227BBEA for ; Wed, 6 Apr 2022 13:42:05 +0100 (BST) Received: from localhost ([::1]:58974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nc4z6-0000Ya-Tq for patchwork@mira.cbaines.net; Wed, 06 Apr 2022 08:42:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc4yc-0008Nj-Ic for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:34 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nc4y7-0000U9-JC for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:32 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nc4y7-0000G5-DB for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v3 02/17] gnu: Add clojure-data-json. 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:03 +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.1649248844893 (code B ref 53765); Wed, 06 Apr 2022 12:41:03 +0000 Received: (at 53765) by debbugs.gnu.org; 6 Apr 2022 12:40:44 +0000 Received: from localhost ([127.0.0.1]:57244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4xn-0000EL-JB for submit@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:43 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:49246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4xm-0000E4-4q for 53765@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:42 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [80.241.60.245]) (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 4KYPHl4zT7z9sRp; Wed, 6 Apr 2022 14:40:35 +0200 (CEST) From: Reily Siegel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1649248833; 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=DqrSSuY8btYYcVSFabRkKsFq5VrgPaxdwdDZ9rzdQFM=; b=IadM2pkTfIjLbJxfzOFHpudVOPs24OolW2zYtSidAYnTsBSGxO4H6s026K+KwkdQJmPCLp OaIb6XPEkBOj5vciCZhhHEwdLo2lrvpzv7feyBdgInbZKeHHkiTyegxe/U1CwuK63D4YxU oe6OLNvxTf+NsVCOPeM+cE0WV/W03hAcpXf/HdVGt6cvUz9pWJWdL5TI8YsWSbGZTzibaU wcr+BllicUQBRSw+PiGkPMRQ1B+5EuvUeAxt75A9X8221c/yftoAdL6Hah2CquifH0XySr voeikCsYwhtSU0Mr9wGiGkhIVIrC/gwKermxmN4kfIj2Y9+8O7jExhcyEXfPiw== In-Reply-To: Date: Sat, 15 Jan 2022 17:32:24 -0500 Message-Id: <903e364407b31810c9427cc7f8859113c6074e02.1649248640.git.mail@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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 44c85b9ef2..f9349e7523 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -315,6 +315,37 @@ (define-public clojure-data-codec is on par with Java implementations, e.g., Apache commons-codec.") (license license:epl1.0))) +(define-public clojure-data-json + (package + (name "clojure-data-json") + (version "2.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/data.json") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xx3hiy62rrph4y4g3aqa1lfb0ns3p6vdvcvlpgm5w1npl70n2r5")))) + (build-system clojure-build-system) + (native-inputs (list clojure-test-check)) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '() + ;; Tests fail due to issues with clojure.pprint. This is an issue with + ;; how Guix AOT-compiles Clojure. + #:test-exclude '(clojure.data.json-compat-0-1-test + clojure.data.json-gen-test + clojure.data.json-test))) + (home-page "https://github.com/clojure/data.json") + (synopsis "JSON parser/generator to/from Clojure data structures") + (description "clojure-data-json implements a JSON parser/generator that +enables easy conversion between Clojure data structures and JSON strings, +without needing a defined schema.") + (license license:epl1.0))) + (define-public clojure-data-priority-map (package (name "clojure-data-priority-map")