[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: python-absl-py: Fix Python version check.
From: |
guix-commits |
Subject: |
02/03: gnu: python-absl-py: Fix Python version check. |
Date: |
Wed, 12 Apr 2023 08:19:39 -0400 (EDT) |
rekado pushed a commit to branch core-updates
in repository guix.
commit b1c3d7a20d4b2811d2a45709b154ef5b68bd3766
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Apr 11 19:02:45 2023 +0200
gnu: python-absl-py: Fix Python version check.
* gnu/packages/python-xyz.scm (python-absl-py)[build-system]: Use
pyproject-build-system.
[arguments]: Add 'patch-version-check build phase to bypass broken version
check.
---
gnu/packages/python-xyz.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c11b9a9d65..ae20f48ac6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7,7 +7,7 @@
;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
-;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus
<rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Ricardo
Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016, 2020 Christine Lemmer-Webber
<cwebber@dustycloud.org>
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
@@ -24350,7 +24350,16 @@ RFC 8265 and RFC 8266.")
(sha256
(base32
"1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'patch-version-check
+ (lambda _
+ ;; Python 3.10 is indeed more recent than Python 3.4.
+ (substitute* "setup.py"
+ ((" or py_version\\[0\\] == '3'.*") ":")))))))
(propagated-inputs
(list python-six))
(home-page "https://github.com/abseil/abseil-py")