From patchwork Tue Mar 12 20:20:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 1392 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 9C93F16DA4; Tue, 12 Mar 2019 20:23:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5A9C516DA1 for ; Tue, 12 Mar 2019 20:23:37 +0000 (GMT) Received: from localhost ([127.0.0.1]:60722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3nw0-0003tn-QQ for patchwork@mira.cbaines.net; Tue, 12 Mar 2019 16:23:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ntk-00022d-9q for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3ntd-0006On-PZ for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3ntc-0006NK-PZ for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3ntc-0003ld-K2 for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#34831] [PATCH 12/25] gnu: Add perl6-json-class. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Mar 2019 20:21:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34831 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34831@debbugs.gnu.org Received: via spool by 34831-submit@debbugs.gnu.org id=B34831.155242205014213 (code B ref 34831); Tue, 12 Mar 2019 20:21:08 +0000 Received: (at 34831) by debbugs.gnu.org; 12 Mar 2019 20:20:50 +0000 Received: from localhost ([127.0.0.1]:40673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3ntJ-0003h9-Lx for submit@debbugs.gnu.org; Tue, 12 Mar 2019 16:20:49 -0400 Received: from flashner.co.il ([178.62.234.194]:49724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3ntG-0003fc-HR for 34831@debbugs.gnu.org; Tue, 12 Mar 2019 16:20:47 -0400 Received: from localhost (unknown [31.210.177.221]) by flashner.co.il (Postfix) with ESMTPSA id E54E1407D7; Tue, 12 Mar 2019 20:20:40 +0000 (UTC) From: Efraim Flashner Date: Tue, 12 Mar 2019 22:20:01 +0200 Message-Id: <20190312202014.31224-12-efraim@flashner.co.il> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190312201608.30892-1-efraim@flashner.co.il> References: <20190312201608.30892-1-efraim@flashner.co.il> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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/perl6.scm (perl6-json-class): New variable. --- gnu/packages/perl6.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm index da399a45a6..845cfae3f2 100644 --- a/gnu/packages/perl6.scm +++ b/gnu/packages/perl6.scm @@ -229,6 +229,37 @@ regular expression engine for the virtual machine.") specification and runs on top of several virtual machines.") (license license:artistic2.0))) +(define-public perl6-json-class + (package + (name "perl6-json-class") + (version "0.0.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jonathanstowe/JSON-Class.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1zyzajc57j3m8q0nr72h9pw4w2nx92rafywlvysgphc5q9sb8np2")))) + (build-system rakudo-build-system) + (propagated-inputs + `(("perl6-json-marshal" ,perl6-json-marshal) + ("perl6-json-unmarshal" ,perl6-json-unmarshal))) + (native-inputs + `(("perl6-json-fast" ,perl6-json-fast))) + (home-page "https://github.com/jonathanstowe/JSON-Class") + (synopsis "Provide simple serialisation/deserialisation of objects to/from JSON") + (description "This is a simple role that provides methods to instantiate a +class from a JSON string that (hopefully,) represents it, and to serialise an +object of the class to a JSON string. The JSON created from an instance should +round trip to a new instance with the same values for the @quot{public +attributes}. @quot{Private} attributes (that is ones without accessors,) will +be ignored for both serialisation and de-serialisation. The exact behaviour +depends on that of @code{JSON::Marshal} and @code{JSON::Unmarshal} respectively.") + (license license:artistic2.0))) + (define-public perl6-json-fast (package (name "perl6-json-fast")