[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/26: gnu: Add perl6-json-class.
From: |
guix-commits |
Subject: |
13/26: gnu: Add perl6-json-class. |
Date: |
Tue, 19 Mar 2019 15:16:52 -0400 (EDT) |
efraim pushed a commit to branch wip-perl6
in repository guix.
commit 67ed4d04d06641634d47afb4b34b3c712043fa9f
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 83f4a35..6ab6d71 100644
--- a/gnu/packages/perl6.scm
+++ b/gnu/packages/perl6.scm
@@ -228,6 +228,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")
- 18/26: gnu: Add perl6-svg., (continued)
- 18/26: gnu: Add perl6-svg., guix-commits, 2019/03/19
- 23/26: gnu: Add perl6-grammar-profiler-simple., guix-commits, 2019/03/19
- 09/26: gnu: Add perl6-json-fast., guix-commits, 2019/03/19
- 14/26: gnu: Add perl6-meta6., guix-commits, 2019/03/19
- 04/26: gnu: Add rakudo., guix-commits, 2019/03/19
- 08/26: gnu: Add perl6-uri., guix-commits, 2019/03/19
- 07/26: gnu: Add perl6-zef., guix-commits, 2019/03/19
- 02/26: gnu: Add moarvm., guix-commits, 2019/03/19
- 11/26: gnu: Add perl6-json-unmarshal., guix-commits, 2019/03/19
- 10/26: gnu: Add perl6-json-name., guix-commits, 2019/03/19
- 13/26: gnu: Add perl6-json-class.,
guix-commits <=
- 15/26: gnu: Add perl6-license-spdx., guix-commits, 2019/03/19
- 06/26: gnu: Add perl6-tap-harness., guix-commits, 2019/03/19
- 03/26: gnu: Add nqp., guix-commits, 2019/03/19
- 05/26: build: Add rakudo-build-system., guix-commits, 2019/03/19
- 01/26: gnu: Add libtommath-1.0., guix-commits, 2019/03/19