Subject: [PATCH 19/21] gnu: python-pyyaml: Add version 5.1.

From: Marius Bakke <[email-masked]>
Date: Fri, 30 Aug 2019 16:25:37 +0200

* gnu/packages/python-xyz.scm (python-pyyaml-next, python2-pyyaml-next): New public variables.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d4b0be494..7056ea3d48 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2282,6 +2282,28 @@ object.")
 (define-public python2-pyyaml
   (package-with-python2 python-pyyaml))
 
+;; Some packages (e.g python-keras) are not ready for the PyYAML >= 4.x API,
+;; so we keep this as a separate variable for now.
+(define-public python-pyyaml-next
+  (package/inherit python-pyyaml
+    (version "5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "PyYAML" version))
+              (sha256
+               (base32
+                "15czj11s2bcgchn2jx81k0jmswf2hjxry5cq820h7hgpxiscfss3"))))))
+
+(define-public python2-pyyaml-next
+  (package/inherit python2-pyyaml
+    (version "5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "PyYAML" version))
+              (sha256
+               (base32
+                "15czj11s2bcgchn2jx81k0jmswf2hjxry5cq820h7hgpxiscfss3"))))))
+
 (define-public python-vine
   (package
     (name "python-vine")
-- 
2.22.1