[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/25: gnu: Add perl6-json-class.
From: |
guix-commits |
Subject: |
12/25: gnu: Add perl6-json-class. |
Date: |
Tue, 12 Mar 2019 16:21:33 -0400 (EDT) |
efraim pushed a commit to branch wip-perl6
in repository guix.
commit 29d1c3dee63d1acbbe795900d34ed7984587545f
Author: Efraim Flashner <address@hidden>
Date: Sat Mar 9 22:07:00 2019 +0200
gnu: Add perl6-json-class.
* 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 da399a4..845cfae 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")
- branch wip-perl6 created (now b9cc5a8), guix-commits, 2019/03/12
- 02/25: gnu: Add nqp., guix-commits, 2019/03/12
- 03/25: gnu: Add rakudo., guix-commits, 2019/03/12
- 01/25: gnu: Add moarvm., guix-commits, 2019/03/12
- 07/25: gnu: Add perl6-uri., guix-commits, 2019/03/12
- 08/25: gnu: Add perl6-json-fast., guix-commits, 2019/03/12
- 14/25: gnu: Add perl6-license-spdx., guix-commits, 2019/03/12
- 12/25: gnu: Add perl6-json-class.,
guix-commits <=
- 25/25: gnu: Add perl6-json., guix-commits, 2019/03/12
- 18/25: gnu: Add perl6-svg-plot., guix-commits, 2019/03/12
- 24/25: gnu: Add perl6-mime-base64., guix-commits, 2019/03/12
- 22/25: gnu: Add perl6-grammar-profiler-simple., guix-commits, 2019/03/12
- 06/25: gnu: Add perl6-zef., guix-commits, 2019/03/12
- 10/25: gnu: Add perl6-json-unmarshal., guix-commits, 2019/03/12
- 09/25: gnu: Add perl6-json-name., guix-commits, 2019/03/12
- 05/25: gnu: Add perl6-tap-harness., guix-commits, 2019/03/12
- 15/25: gnu: Add perl6-test-meta., guix-commits, 2019/03/12
- 16/25: gnu: Add perl6-xml-writer., guix-commits, 2019/03/12