[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: python2-pyyaml: Detach source from python-pyyaml.
From: |
guix-commits |
Subject: |
01/02: gnu: python2-pyyaml: Detach source from python-pyyaml. |
Date: |
Thu, 31 Mar 2022 10:04:25 -0400 (EDT) |
rekado pushed a commit to branch wip-pyyaml
in repository guix.
commit 85717aac0394095144c2024a3284e1ec4bf1d58d
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Mar 30 17:53:44 2022 +0200
gnu: python2-pyyaml: Detach source from python-pyyaml.
* gnu/packages/python-xyz.scm (python2-pyyaml): Override source and version
fields.
(python-pyyaml)[properties]: Add python2-variant.
---
gnu/packages/python-xyz.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d3bd107350..d3377b79b9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3902,10 +3902,21 @@ environments and back.")
complete YAML 1.1 parser, Unicode support, pickle support, capable extension
API, and sensible error messages. PyYAML supports standard YAML tags and
provides Python-specific tags that represent an arbitrary Python object.")
- (license license:expat)))
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-pyyaml))))))
(define-public python2-pyyaml
- (package-with-python2 python-pyyaml))
+ (let ((base (package-with-python2 (strip-python2-variant python-pyyaml))))
+ (package
+ (inherit base)
+ (version "5.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyYAML" version))
+ (sha256
+ (base32
+ "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0")))))))
(define-public python-vine
(package