summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-03-02 10:37:28 +0000
committerChristopher Baines <mail@cbaines.net>2023-03-02 10:55:08 +0000
commit7df09ee0ab3e7962ef27859ce87e06a323059284 (patch)
treed81334f742ddcb9a1ee63961ca6410922980af1c /gnu/packages/python.scm
parent2ac51ec99b58b50c08ba719a8c7e9dba0330b065 (diff)
parentaf95f2d8f98eb2c8c64954bb2fd0b70838899174 (diff)
Merge remote-tracking branch 'savannah/master' into core-updates
Conflicts: gnu/local.mk gnu/packages/autotools.scm gnu/packages/cmake.scm gnu/packages/gnuzilla.scm gnu/packages/haskell.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/samba.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/wxwidgets.scm
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm25
1 files changed, 10 insertions, 15 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8ba4c76a3d..6abc5cdd88 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org>
@@ -561,13 +561,13 @@ data types.")
(modify-inputs (package-inputs python-2.7)
(replace "openssl" openssl)))
(native-inputs
- `(("tzdata" ,tzdata-for-tests)
- ("unzip" ,unzip)
- ("zip" ,(@ (gnu packages compression) zip))
- ,@(if (%current-target-system)
- `(("python3" ,this-package))
- '())
- ,@(package-native-inputs python-2)))
+ (let ((inputs (modify-inputs (package-native-inputs python-2)
+ (prepend tzdata-for-tests
+ unzip
+ (@ (gnu packages compression) zip)))))
+ (if (%current-target-system)
+ (modify-inputs inputs (prepend this-package))
+ inputs)))
(native-search-paths
(list (guix-pythonpath-search-path version)
;; Used to locate tzdata by the zoneinfo module introduced in
@@ -594,9 +594,7 @@ data types.")
;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus
;; libffi. Expat is needed for XML support which is expected by a lot
;; of libraries out there.
- (inputs `(("expat" ,expat)
- ("libffi" ,libffi)
- ("zlib" ,zlib)))))
+ (inputs (list expat libffi zlib))))
(define-public python-minimal
(package/inherit python
@@ -607,10 +605,7 @@ data types.")
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
;; zlib is required by 'zipimport', used by pip. Expat is needed
;; for XML support, which is generally expected to be available.
- (inputs `(("expat" ,expat)
- ("libffi" ,libffi)
- ("openssl" ,openssl)
- ("zlib" ,zlib)))))
+ (inputs (list expat libffi openssl zlib))))
(define-public python-debug
(package/inherit python