From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV4Ow-0001Yw-1m for guix-patches@gnu.org; Tue, 11 Jul 2017 19:17:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dV4Os-0003h1-Rv for guix-patches@gnu.org; Tue, 11 Jul 2017 19:17:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dV4Os-0003gt-Jd for guix-patches@gnu.org; Tue, 11 Jul 2017 19:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dV4Os-0000wi-8p for guix-patches@gnu.org; Tue, 11 Jul 2017 19:17:02 -0400 Subject: [bug#27558] [PATCH] gnu: Add python-ruamel.yaml References: <20170703034703.9668-1-fredmanglis@gmail.com> In-Reply-To: <20170703034703.9668-1-fredmanglis@gmail.com> Resent-Message-ID: From: Muriithi Frederick Muriuki Date: Wed, 12 Jul 2017 02:17:01 +0300 Message-Id: <20170711231701.14368-1-fredmanglis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27558@debbugs.gnu.org * gnu/packages/python.scm (python-ruamel.yaml, python2-ruamel.yaml) New * variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d110a1cb3..161812ac9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -15549,3 +15549,35 @@ pure Python module.") (define-public python2-rencode (package-with-python2 python-rencode)) + +(define-public python-ruamel.yaml + (package + (name "python-ruamel.yaml") + (version "0.15.18") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ruamel.yaml" version)) + (sha256 + (base32 + "1mg8zgc2f45fh7hfy2hdfb8cxq503jqjb7v1gzd9am4bqgkrqp1l")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* _ + (zero? (system* "bash" "-c" "py.test" "_test/test_*.py"))))))) + (home-page "https://bitbucket.org/ruamel/yaml") + (synopsis "This is a YAML 1.2 parser/emitter") + (description "This package provides YAML parser/emitter that supports +roundtrip preservation of comments, seq/map flow style, and map key order. It +is a derivative of Kirill Simonov’s PyYAML 3.11. It supports YAML 1.2 and has +round-trip loaders and dumpers. It supports comments. Block style and key +ordering are kept, so you can diff the source.") + (license license:expat))) + +(define-public python2-ruamel.yaml + (package-with-python2 python-ruamel.yaml)) -- 2.13.2