summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorTanguy Le Carrour <tanguy@bioneland.org>2020-12-14 09:42:40 +0100
committerLudovic Courtès <ludo@gnu.org>2020-12-14 10:34:31 +0100
commit5fe87ef51c0b6c41ad8f53579f0fd515f0ab059e (patch)
treede59d443927d91df31473eb3f5224affbcad9998 /gnu/packages/python.scm
parent9f3cb56038392e76c001d3da4176d5363186871a (diff)
gnu: Add python-3.9.
* gnu/packages/python.scm (python-3.9): New variable. * gnu/packages/patches/python-3.9-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 43704bccae2..fa9bf10e074 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -520,6 +520,31 @@ data types.")
520 (version-major+minor version) 520 (version-major+minor version)
521 "/site-packages")))))))) 521 "/site-packages"))))))))
522 522
523(define-public python-3.9
524 (package (inherit python-3.8)
525 (name "python-next")
526 (version "3.9.1")
527 (source (origin
528 (method url-fetch)
529 (uri (string-append "https://www.python.org/ftp/python/"
530 version "/Python-" version ".tar.xz"))
531 (patches (search-patches
532 "python-3.9-fix-tests.patch"
533 "python-3-deterministic-build-info.patch"
534 "python-3-search-paths.patch"))
535 (sha256
536 (base32
537 "1zq3k4ymify5ig739zyvx9s2ainvchxb1zpy139z74krr653y74r"))
538 (modules '((guix build utils)))
539 (snippet
540 '(begin
541 ;; Delete the bundled copy of libexpat.
542 (delete-file-recursively "Modules/expat")
543 (substitute* "Modules/Setup"
544 ;; Link Expat instead of embedding the bundled one.
545 (("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
546 #t))))))
547
523;; Current 3.x version. 548;; Current 3.x version.
524(define-public python-3 python-3.8) 549(define-public python-3 python-3.8)
525 550