From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 6/7] gnu: Add python-ruamel.yaml. Date: Tue, 31 Jan 2017 12:53:38 +0000 Message-ID: <20170131125339.18500-7-contact.ng0@cryptolab.net> References: <20160925173931.GD9499@jasmine> <20170131125339.18500-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYXvC-0006S6-VN for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYXvB-0002io-P3 for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:31 -0500 Received: from aibo.runbox.com ([91.220.196.211]:47812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYXvB-0002iI-Hg for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:29 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cYXvA-0002oe-7A for guix-devel@gnu.org; Tue, 31 Jan 2017 13:52:28 +0100 In-Reply-To: <20170131125339.18500-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * gnu/packages/python.scm (python-ruamel.yaml): New variable. --- gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 285207543..583f57b6f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2845,6 +2845,41 @@ object.") (define-public python2-pyyaml (package-with-python2 python-pyyaml)) +(define-public python-ruamel.yaml + (package + (name "python-ruamel.yaml") + (version "0.12.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ruamel.yaml" version)) + (sha256 + (base32 + "1w23nqswsq083xc0qpkw764n1a4v5g9p4fz1jkp6xbrzr9mrkqp7")))) + (build-system python-build-system) + (arguments + `(;; Otherwise it complains that you have to do "pypi install ." + #:configure-flags (list "--single-version-externally-managed" + "--record=ruamel.yaml.txt"))) + (inputs + `(("python-typing" ,python-typing))) + (home-page "https://bitbucket.org/ruamel/yaml") + (synopsis "YAML 1.2 loader/dumper package for Python") + (description + "@code{ruamel.yaml} is a YAML 1.2 parser/emitter that supports roundtrip +preservation of comments, seq/map flow style, and map key order.") + (license license:expat))) + +(define-public python2-ruamel.yaml + (package (inherit (package-with-python2 + (strip-python2-variant python-ruamel.yaml))) + (name "python2-ruamel.yaml") + (inputs + `(("python2-ruamel.ordereddict" ,python2-ruamel.ordereddict) + ("python2-typing" ,python2-typing))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))))) + (define-public python-virtualenv (package (name "python-virtualenv") -- 2.11.0