From 01dad343da9e1857e9ec4b2a174e9b211fdb7019 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 21 Sep 2016 11:31:07 +0000 Subject: [PATCH 7/8] gnu: Add python-ruamel.yaml. * 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 2bcf2d8..5583aa6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2758,6 +2758,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.10.0