summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
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 8ba4c76a3de..6abc5cdd887 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> 2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org> 3;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 Ludovic Courtès <ludo@gnu.org>
4;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> 4;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> 5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org> 6;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org>
@@ -561,13 +561,13 @@ data types.")
561 (modify-inputs (package-inputs python-2.7) 561 (modify-inputs (package-inputs python-2.7)
562 (replace "openssl" openssl))) 562 (replace "openssl" openssl)))
563 (native-inputs 563 (native-inputs
564 `(("tzdata" ,tzdata-for-tests) 564 (let ((inputs (modify-inputs (package-native-inputs python-2)
565 ("unzip" ,unzip) 565 (prepend tzdata-for-tests
566 ("zip" ,(@ (gnu packages compression) zip)) 566 unzip
567 ,@(if (%current-target-system) 567 (@ (gnu packages compression) zip)))))
568 `(("python3" ,this-package)) 568 (if (%current-target-system)
569 '()) 569 (modify-inputs inputs (prepend this-package))
570 ,@(package-native-inputs python-2))) 570 inputs)))
571 (native-search-paths 571 (native-search-paths
572 (list (guix-pythonpath-search-path version) 572 (list (guix-pythonpath-search-path version)
573 ;; Used to locate tzdata by the zoneinfo module introduced in 573 ;; Used to locate tzdata by the zoneinfo module introduced in
@@ -594,9 +594,7 @@ data types.")
594 ;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus 594 ;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus
595 ;; libffi. Expat is needed for XML support which is expected by a lot 595 ;; libffi. Expat is needed for XML support which is expected by a lot
596 ;; of libraries out there. 596 ;; of libraries out there.
597 (inputs `(("expat" ,expat) 597 (inputs (list expat libffi zlib))))
598 ("libffi" ,libffi)
599 ("zlib" ,zlib)))))
600 598
601(define-public python-minimal 599(define-public python-minimal
602 (package/inherit python 600 (package/inherit python
@@ -607,10 +605,7 @@ data types.")
607 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib; 605 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
608 ;; zlib is required by 'zipimport', used by pip. Expat is needed 606 ;; zlib is required by 'zipimport', used by pip. Expat is needed
609 ;; for XML support, which is generally expected to be available. 607 ;; for XML support, which is generally expected to be available.
610 (inputs `(("expat" ,expat) 608 (inputs (list expat libffi openssl zlib))))
611 ("libffi" ,libffi)
612 ("openssl" ,openssl)
613 ("zlib" ,zlib)))))
614 609
615(define-public python-debug 610(define-public python-debug
616 (package/inherit python 611 (package/inherit python