-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-3.10.12.scm
36 lines (33 loc) · 1.37 KB
/
python-3.10.12.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(use-modules (gnu packages)
(gnu packages python)
(guix download)
(guix packages))
(define-public python-3.10.12
(package
(inherit python-3.10)
(version "3.10.12")
(source (origin
(method url-fetch)
(uri (string-append "https://www.python.org/ftp/python/"
version "/Python-" version ".tar.xz"))
(patches (search-patches
"python-3-arm-alignment.patch"
"python-3-deterministic-build-info.patch"
"python-3-fix-tests.patch"
"python-3-hurd-configure.patch"
"python-3-search-paths.patch"))
(sha256
(base32
"1f1hb23gnv2l427bdsl1g59f092gg1g8yb1i21ys9rrhj7qlpdxg"))
(modules '((guix build utils)))
(snippet
'(begin
;; Delete the bundled copy of libexpat.
(delete-file-recursively "Modules/expat")
(substitute* "Modules/Setup"
;; Link Expat instead of embedding the bundled one.
(("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
;; Delete windows binaries
(for-each delete-file
(find-files "Lib/distutils/command" "\\.exe$"))))))))
python-3.10.12