From a53a68a175768c2dd7712582553a5f0d125574f9 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 11 Oct 2017 09:47:15 +0000 Subject: [PATCH 1/5] gnu: Add python-cbor. * gnu/packages/serialization.scm (python-cbor): New variable. --- gnu/packages/serialization.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 186692612..266d2eeee 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2017 Corentin Bocquillon ;;; Copyright © 2017 Gregor Giesen ;;; Copyright © 2017 Frederick M. Muriithi +;;; Copyright © 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -385,3 +386,26 @@ style and key ordering are kept, so you can diff the source.") (define-public python2-ruamel.yaml (package-with-python2 python-ruamel.yaml)) + +(define-public python-cbor + (package + (name "python-cbor") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cbor" version)) + (sha256 + (base32 + "1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk")))) + (build-system python-build-system) + (home-page + "https://bitbucket.org/bodhisnarkva/cbor") + (synopsis "Implementation of Concise Binary Object Representation") + (description + "Python-cbor provides an implementation of +Concise Binary Object Representation (CBOR). CBOR is comparable to +JSON, has a superset of JSON’s ability, but serializes to a binary format +which is smaller and faster to generate and parse. +The two primary functions are cbor.loads() and cbor.dumps().") + (license license:asl2.0))) -- 2.14.2