summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
AgeCommit message (Collapse)Author
2025-07-18gnu: python-2.7: Fix build with gcc-14.Janneke Nieuwenhuizen
* gnu/packages/python.scm (python-2.7)[arguments]: Relax gcc-14's strictness in #:configure-flags's CFLAGS. Change-Id: If3aef0edfcbdf0055ec7ca8425e03ff5c2df67b4
2025-07-18gnu: python: Use G-Expressions.Janneke Nieuwenhuizen
* gnu/packages/python.scm (python-2.7)[arguments]: Use G-Expressions. (python-3.10): Likewise, update accordingly. (python-3.12): Likewise, update accordingly. (python-debug): Likewise, update accordingly. Change-Id: Iacb6f94fc6fb8ab70932321bc516a230c1c1003b
2025-04-21gnu: python@3.11: Skip more tests on GNU/Hurd.Yelninei
* gnu/packages/python.scm (python-3.11)[#:make-flags]: Skip test_glob, test_site, test_termios, test_tty and test_sqlite3 on Hurd systems. Change-Id: I2a2b89e33ea0c9cbda393bb76dd325c2569b2639 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-04-21gnu: python@3.11: Support cross-compilation.Ludovic Courtès
* gnu/packages/python.scm (python-3.11)[arguments]: Pass ‘--with-build-python’ when cross-compiling. Change-Id: Ibb210cc599ff06c5da7e73f706488488c84f5cba
2025-04-16gnu: python-debug: Use G-Expressions.Sharlatan Hellseher
* gnu/packages/python.scm (python-debug): Use G-Expressions, fix build. Change-Id: I940ec4fddcea03a258659ca044b0dad4948c4ed5
2025-04-16gnu: python-3.11: Build with libxcrypt.Ricardo Wurmus
Linking with libxcrypt provides a featureful fallback for the included crypto module, thus fixing the virtually unmaintained but still widely used python-passlib. * gnu/packages/python.scm (python-3.11)[arguments]<configure-flags>: Link with libcrypt if available. <phases>: Use G-expression; add phase 'add-libxcrypt-reference-pkgconfig. [inputs]: Add libxcrypt. Change-Id: I2e51df7f7f2cc8909ee64717648a36ed0da3f198
2025-04-16gnu: Default to Python 3.11.Ricardo Wurmus
* gnu/packages/python.scm (python-3): Point to python-3.11. Change-Id: I0335ced5a24a5318b71e4c3fdcdbad6cd9e9c5c5
2025-04-16gnu: Add python-3.11.Ricardo Wurmus
* gnu/packages/patches/python-3.11-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add patch. * gnu/packages/python.scm (python-3.11): New variable. Co-authored-by: Tanguy Le Carrour <tanguy@bioneland.org>. Change-Id: I4a05f75d7b8867166ab91e983abff1a99cd7c80e
2024-08-31gnu: python-3.10: Ungraft removing bundled cacert.pem.Josselin Poiret
* gnu/packages/python.scm (python-3.10): Rename phase "remove-windows-binaries" to "remove-vendored-wheel-content", and use it to also remove "cacert.pem". Ungraft. (python-3.10/fixed): Remove variable. Change-Id: I0a1a5c7f597ef6e14ea165ccded9aa473c6d9122
2024-08-31gnu: python: Add libxcrypt dependency.Josselin Poiret
* gnu/packages/python.scm (python-2.7): Add libxcrypt dependency. Change-Id: I23d99900fd6bbd2f9a88a3efe0c8deac01ef160f
2024-08-31gnu: python: Make the build reproducible.Tomas Volf
While Python build was reproducible on a single machine, once multiple file systems entered the picture, it was no longer true. The solution adopted by the upstream (and Debian) was cherry-picked. More info: <https://github.com/python/cpython/pull/8226>. * gnu/packages/python.scm (python-3.10) [source]: Apply reproducibility patch. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I0273dc0f8511a7acdcc2b462a26cc29a9756c801
2024-04-26gnu: python-3.12: Enable loadable sqlite extensions.Felix Gruber
This change makes it possible to load sqlite extensions with import sqlite3 con = sqlite3.connect(":memory:") con.enable_load_extension(True) con.load_extension(path_to_extension) * gnu/packages/python.scm (python-3.12)[arguments]: Add --enable-loadable-sqlite-extensions to configure-flags. Change-Id: I4fb0a5482c96a12a71c88bc48fffc4c3abe78544 Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
2024-04-07gnu: python: Use system SSL certificates.Efraim Flashner
* gnu/packages/python.scm (python)[replacement]: New field. (python/fixed): Provide a python with a patched python-certifi which only offers to use the system's SSL certificates. Change-Id: Ic5bcfb6b32282a7e0628232b1dc4cd60f3f2da52
2024-03-10gnu: python-next: Skip another test.Efraim Flashner
* gnu/packages/python.scm (python-next)[arguments]: Skip another test which fails on slow machines. Change-Id: I777aa346c674604a22dc0be0b319f5df02e0ab3b
2024-03-09gnu: Add python-3.12 and python-next.Tanguy Le Carrour
* gnu/packages/python.scm (python-3.12, python-next): New variables. * gnu/packages/patches/python-3.12-fix-tests.patch: New file. Change-Id: Ie393b732a8863569578e72e62603b75a1655a34e Signed-off-by: Tanguy Le Carrour <tanguy@bioneland.org> Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
2023-07-20gnu: python: Support native build on the Hurd.Janneke Nieuwenhuizen
Running "test_concurrent_futures" and "test_venv" freeze the Hurd. Tests "test_multiprocessing_forkserver" and "test_multiprocessing_spawn" run over 10mins. Debian simply skips all tests on the Hurd. * gnu/packages/python.scm (python-3.10)[arguments]: When building for the Hurd, add hanging and failing to #:make-flags's --exclude flag. Also, add 'disable-multi-processing' phase to avoid compileall.py hang during install.
2023-06-17gnu: Use target-hurd?, system-hurd? instead of hurd-target?, hurd-system?.Janneke Nieuwenhuizen
* gnu/packages/hurd.scm (hurd-target?): Remove. (hurd-system?): Move to... * guix/utils.scm (system-hurd?): ...here. * gnu/packages/*: Update all users, removing (gnu packages hurd) include where now unused.
2023-04-14gnu: wrap-python3: Replace assoc-ref call with gexp variable.Maxim Cournoyer
* gnu/packages/python.scm (wrap-python3) [arguments]: Replace assoc-ref call with gexp variable in builder.
2023-03-09gnu: python-wrapper: Refer to the target Python when cross-compiling.Ludovic Courtès
Previously, "guix build python-wrapper --target=aarch64-linux-gnu" would return a wrapper that symlinks the native programs (e.g., 'python3' for x86_64-linux) instead of the target programs. * gnu/packages/python.scm (wrap-python3)[arguments]: Use gexps. Use 'this-package-input' to refer to Python when cross-compiling.
2023-03-02Merge remote-tracking branch 'savannah/master' into core-updatesChristopher Baines
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
2023-02-25gnu: python: Remove input labels.Ludovic Courtès
* gnu/packages/python.scm (python-3.9)[native-inputs]: Remove labels. (python2-minimal)[inputs]: Likewise. (python-minimal)[inputs]: Likewise.
2023-01-30Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner
Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm
2022-10-27build-system: Add pyproject-build-system.Lars-Dominik Braun
This is an experimental build system based on python-build-system that implements PEP 517-compliant builds. * doc/guix.texi (Build Systems): Add pyproject-build-system section. * doc/contributing.texi (Python Modules): Mention pyproject.toml and the PYTHON-TOOLCHAIN package, as well as differences to python-build-system. * guix/build-system/pyproject.scm, guix/build/pyproject-build-system.scm, gnu/packages/aux-files/python/sanity-check-next.py, gnu/packages/python-commencement.scm: New files. * Makefile.am (MODULES): Register the new build systems. * gnu/local.mk (GNU_SYSTEM_MODULES): Add python-commencement.scm. * gnu/packages/python.scm (python-sans-pip, python-sans-pip-wrapper): New variables. Co-authored-by: Marius Bakke <marius@gnu.org>
2022-10-27gnu: pypy: Move to separate module.Lars-Dominik Braun
This removes the need to import (gnu packages python-xyz) in (gnu packages python), avoiding issues with circular imports. * gnu/packages/python.scm (pypy): Move… * gnu/packages/pypy.scm (pypy): …here * gnu/local.mk: Register new file. Co-authored-by: Marius Bakke <marius@gnu.org>
2022-10-13gnu: micropython: Update to 1.19.jgart
* gnu/packages/python.scm (micropython): Update to 1.19. v2 adds my copyright declaration. thnx! Signed-off-by: Christopher Baines <mail@cbaines.net>
2022-09-18gnu: Python: Update to 3.10.7.Marius Bakke
* gnu/packages/python.scm (python-3.9): Rename to ... (python-3.10): ... this. Update to 3.10.7. [source](patches): Remove 'python-3-no-static-libs.patch' in favor of ... [arguments]: Add #:configure-flags. (python-3): Refer to PYTHON-3.10. * gnu/packages/patches/python-3-fix-tests.patch: Refresh. * gnu/packages/patches/python-3-no-static-lib.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/version-control.scm (mercurial)[native-search-paths]: Adjust Python version. * gnu/packages/admin.scm (ansible)[native-search-paths]: Likewise. * gnu/packages/bioinformatics.scm (scvelo)[arguments]: Replace hard-coded python3.9 paths with python3.10. * gnu/packages/cran.scm (r-torch)[arguments]: Likewise. * gnu/packages/machine-learning.scm (liblantern)[arguments]: Likewise.
2022-09-08Merge branch 'staging' into core-updatesMarius Bakke
2022-09-07gnu: pypy: Fix build.Maxim Cournoyer
This fixes a regression that was introduced in commit 553c009d741. * gnu/packages/python.scm (pypy)[phases]{install}: Rename the OUT variable to #$OUTPUT.
2022-08-30Merge branch 'staging' into core-updatesMarius Bakke
2022-08-30gnu: Introduce versioned 'openssl-1.1' variable.Marius Bakke
...and use it in packages that do not yet support 3.0. * gnu/packages/tls.scm (openssl): Rename to ... (openssl-1.1): ... this. (openssl/fixed): Inherit from OPENSSL-1.1. (openssl-3.0): Likewise. (openssl): Turn into alias for OPENSSL-1.1. * gnu/packages/ruby.scm (ruby-2.6)[inputs]: Change from OPENSSL to OPENSSL-1.1. (ruby-3.0)[inputs]: Change "openssl" input to OPENSSL. (ruby-3.1): Inherit from RUBY-3.0. * gnu/packages/python.scm (python-2.7)[inputs]: Change from OPENSSL to OPENSSL-1.1. (python-3.9)[inputs]: Replace "openssl" with OPENSSL. * gnu/packages/python-crypto.scm (python-cryptography)[inputs]: Change from OPENSSL to OPENSSL-1.1. * gnu/packages/databases.scm (mariadb)[inputs]: Likewise. * gnu/packages/node.scm (node)[native-inputs, inputs]: Likewise. (node-lts)[native-inputs]: Likewise.
2022-08-11Merge branch 'staging' into core-updatesMarius Bakke
2022-08-09gnu: wrap-python3: Clarify relationship with wrapped package.Philip McGrath
The previous description could give the impression that the user faced a choice between `python` and `python3`, but could not have both at once. In fact, the packages `python-wrapper` and `python-minimal-wrapper` already provide both sets of names. * gnu/packages/python.scm (wrap-python3)[description]: Tweak. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-07-22Merge branch 'staging' into core-updatesMarius Bakke
2022-07-08gnu: python-debug: Improve synopsis.jgart
* gnu/packages/python.scm (python-debug) [synopsis]: Update. Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-06-28gnu: python2: Fix build with newer Expat.Marius Bakke
* gnu/packages/patches/python-2.7-expat-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/python.scm (python-2.7)[source](patches): Add it.
2022-06-26gnu: Python: Update to 3.9.13.Marius Bakke
* gnu/packages/python.scm (python-3.9): Update to 3.9.13.
2022-05-29gnu: micropython: Don't override 'install-license-files.Tobias Geerinckx-Rice
* gnu/packages/python.scm (micropython)[arguments]: Prefix a new 'chdir-back phase instead of overriding 'install-license-files.
2022-05-29gnu: micropython: Use G-expressions.Tobias Geerinckx-Rice
* gnu/packages/python.scm (micropython)[arguments]: Rewrite as G-expressions.
2022-05-29gnu: micropython: Remove input labels.Tobias Geerinckx-Rice
* gnu/packages/python.scm (micropython)[native-inputs]: Remove input labels.
2022-05-29gnu: micropython: Update to 1.18.Tobias Geerinckx-Rice
* gnu/packages/python.scm (micropython): Update to 1.18. [source, arguments]: Don't explicitly return #t from snippet or phases.
2022-05-31gnu: Remove python2-called-python.Maxim Cournoyer
* gnu/packages/python.scm (python2-called-python): Delete variable.
2022-05-31gnu: pypy3: Rename to pypy and modernize definition.Maxim Cournoyer
* gnu/packages/python.scm (pypy3): Deprecate in favor of... (pypy): ... this renamed package. [native-inputs, inputs]: Move after arguments, use new style and sort. [native-inputs]: Remove python2-hypothesis. [phases]: Adjust to use gexps, with search-input-file and this-package-input.
2022-01-10gnu: python-3.9: Update to 3.9.9.Maxim Cournoyer
* gnu/packages/python.scm (python-3.9): Update to 3.9.9.
2021-12-26gnu: pypy3: Prohibit references to nss-certs.Leo Famulari
Built packages should not refer to nss-certs, to prevent errant hard-coding of a certificate store version. * gnu/packages/python.scm (pypy3)[arguments]: Add nss-certs to #:disallowed-references.
2021-12-13gnu: Simplify package inputs.Ludovic Courtès
This commit was obtained by running: ./pre-inst-env guix style without any additional argument.
2021-10-12Merge remote-tracking branch 'origin/master' into core-updates-frozen.Mathieu Othacehe
2021-09-25gnu: Consolidate duplicate copyright names.Greg Hogan
* gnu/packages/android.scm: Consolidate copyright lines with the same email address. * gnu/packages/code.scm: Likewise. * gnu/packages/cpp.scm: Likewise. * gnu/packages/databases.scm: Likewise. * gnu/packages/emacs-xyz.scm: Likewise. * gnu/packages/file.scm: Likewise. * gnu/packages/freedesktop.scm: Likewise. * gnu/packages/gl.scm: Likewise. * gnu/packages/gps.scm: Likewise. * gnu/packages/linux.scm: Likewise. * gnu/packages/networking.scm: Likewise. * gnu/packages/python-xyz.scm: Likewise. * gnu/packages/python.scm: Likewise. * gnu/packages/video.scm: Likewise. * gnu/packages/xdisorg.scm: Likewise. * gnu/services/web.scm: Likewise. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-09-07Merge branch 'master' into core-updates-frozenLudovic Courtès
2021-08-20gnu: python: Build lib2to3/tests module.Mathieu Othacehe
* gnu/packages/python.scm (python-2.7)[arguments]: Build lib2to3/tests module that is needed by python-pyannotate.
2021-08-12Merge branch 'master' into core-updates-frozenMarius Bakke
Conflicts: gnu/packages/algebra.scm gnu/packages/games.scm gnu/packages/golang.scm gnu/packages/kerberos.scm gnu/packages/mail.scm gnu/packages/python.scm gnu/packages/ruby.scm gnu/packages/scheme.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm