Commit graph

179258 commits

Author SHA1 Message Date
Nicolas Graves
1bba8142fb
gnu: python-packaging: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-packaging): Move from here ...
* gnu/packages/python-build.scm (python-packaging): ... to here.
Overwrite original python-packaging-bootstrap and swap inheritance.

Change-Id: If244d390b7ec3e526dccba28023f6f5350346f01
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:48 +00:00
Nicolas Graves
5458e2a0d1
gnu: python-pretend: Move to python-build and adapt native-inputs.
* gnu/packages/python-xyz.scm (python-pretend): Move from here…
* gnu/packages/python-build.scm (python-pretend): …to here.
[native-inputs]: Remove python-pytest,
and python-setuptools; add python-packaging-bootstrap,
python-pytest-bootstrap, and python-setuptools-bootstrap.

Related-to: guix/guix#5813
Change-Id: I75a27534d71f456fdb76841f1d3597a81976c7e6
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:48 +00:00
Nicolas Graves
812b0c3c34
gnu: python-six: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-six, python-six-bootstrap): Move from here…
* gnu/packages/python-build.scm (python-six, python-six-bootstrap): …to here.
* gnu/packages/linphone.scm: Adapt imported modules.
* gnu/packages/mate.scm: Adapt imported modules.

Change-Id: Iea0b78aa4adfdd68d863f674fd37997ad4c99485
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:48 +00:00
Nicolas Graves
de71fdcff9
gnu: python-pygments: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-pygments, python-pygments-boostrap): Move from here…
* gnu/packages/python-build.scm (python-pygments, python-pygments-boostrap): …to here.
* gnu/packages/books.scm: Adapt modules.
* gnu/packages/lisp-xyz.scm: Adapt modules.
* gnu/packages/ruby-xyz.scm: Adapt modules.

Change-Id: Id73c1d536c48c490bb7444f87cc6b89d6a79cb38
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:48 +00:00
Nicolas Graves
7e921f69c2
gnu: python-pytest-bootstrap: Move to (gnu packages python-build).
* gnu/packages/check.scm (python-pytest-bootstrap): Move from here…
* gnu/packages/python-build.scm (python-pytest-bootstrap): …to here.
Redefine it to avoid inheritance.

Change-Id: I1494221674cac649d7a3710f7877f51c640af4e3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
7639cca683
gnu: Add python-pygments-bootstrap.
* gnu/packages/python-build.scm (python-pygments-bootstrap): New variable.

Change-Id: I30049d78d5e59302da0d95c674eb2d03637ecfd8
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
9920187597
gnu: python-iniconfig: Move to python-build and adapt native-inputs.
* gnu/packages/python-xyz.scm (python-iniconfig): Move from here…
* gnu/packages/python-build.scm (python-iniconfig): …to here.
[native-inputs]: Remove python-hatch-vcs, and python-hatchling; add
python-hatch-vcs-bootstrap, and python-hatchling-bootstrap.

Change-Id: I4691d19787fdfbc1293b475c43595d273aa40a4e
Modified-by-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
427c837582
gnu: Add python-hatch-vcs-bootstrap.
* gnu/packages/python-build.scm (python-hatch-vcs-bootstrap): New variable.

Change-Id: Iaf06c1e6c44aeb29e73cb836fe0ca016ab5c945f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
5e44ad7f12
gnu: Add python-setuptools-scm-bootstrap.
* gnu/packages/python-build.scm (python-setuptools-scm-bootstrap): New variable.

Change-Id: I9ba335003efe7c2d164a96526646ecca8e1ee347
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
966c7c70e6
gnu: Add python-hatchling-bootstrap.
* gnu/packages/python-build.scm (python-hatchling-bootstrap): New variable.

Change-Id: Ie7a7d7817cc51f8b88d43f2ec8ae14c343608279
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
c510fd4adf
build-system/pyproject: Improve style.
* guix/build/pyproject-build-system.scm (ensure-no-cythonized-files):
Remove extra spaces in Python snippet.

Change-Id: I1453e8707093e640e588d7221a8e71abf846c89f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
4b138b04dd
gnu: python-pyfavicon: Correct package.
* gnu/packages/python-xyz.scm (python-pyfavicon)
[arguments]<#:test-backend>: Remove it.
[native-inputs]: Add python-pytest.

Change-Id: I0ca4da01598fffe2c2dbfdcd45c4f2ff2677aaa2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:47 +00:00
Nicolas Graves
f999fae244
gnu: python-pyro4: Correct package.
* gnu/packages/python-xyz.scm (python-pyro4)
[native-inputs]: Reintroduce python-pytest.
[arguments]<#:test-flags>: Correct them.
<#:phases>: Remove them.

Change-Id: Icdc6b1e39a829d979b27037fda7dce632b64da4d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Nicolas Graves
60634f39b8
gnu: python-pyzbar: Modernize package.
* gnu/packages/aidc.scm (python-pyzbar)
[native-inputs]: Add python-pytest.
[arguments]<#:test-flags>: Adapt accordingly.
<#:phases>: Drop phase 'remove-failing-test. Refresh phase
'set-library-file-name.

Change-Id: I247cfd60a4c36d42918befe1ce4231cd8eb24180
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Nicolas Graves
dc5591cf22
gnu: python-aiosqlite: Correct package.
* gnu/packages/databases.scm (python-aiosqlite)
[native-inputs]: Add python-packaging due to sanity-check change.
[propagated-inputs]: Add forgotten python-typing-extensions.

Change-Id: Ib9422597a7758d017d4c1f193551db96791e9e5f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Nicolas Graves
99faaf5492
gnu: python-envs: Propagate python-click.
The new sanity-check found that we forgot to do that.

* gnu/packages/python-xyz.scm (python-envs)[propagated-inputs]: Add
python-click.

Change-Id: I1106a370ca4a15435d2315fcea246b398db666b2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Nicolas Graves
b6f7c7238b
gnu: python-monthdelta: Disable tests.
* gnu/packages/python-xyz.scm (python-monthdelta)[arguments]
<#:tests?>: Disable them, as there are none to run.

Change-Id: Ifd25d27cdbdd7b901d92c509f984a50342d0bdb6
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Nicolas Graves
2be7de055c
gnu: python-axolotl-curve25519: Disable tests.
* gnu/packages/python-crypto.scm (python-axolotl-curve25519)
[arguments]<#:tests?>: Disable them, drop <#:test-backend>.

Change-Id: I789d70a34ccfc347d9b7c7e911eb18e0e71397f1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 21:22:46 +00:00
Sharlatan Hellseher
39dfe79178
gnu: Remove python-hypothesis-next.
* gnu/packages/check.scm (python-hypothesis-next): Delete variable.

Change-Id: I108aa4004ba92b51f639add0745fec0f421d5a9c
2026-01-24 21:22:46 +00:00
Sharlatan Hellseher
d01b074c71
gnu: python-iso8601/pinned: Switch to pyproject.
* gnu/packages/time.scm (python-iso8601/pinned): Inherit [build-system]
and [arguments] fields from python-iso8601.
[arguments]: Use default 'check.

Change-Id: I0516abc57cdd28946e0f6391f401a5509b43f255
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
d27af46291
gnu: python-fonttools-minimal: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-fonttools-minimal):
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.

Change-Id: Ic89cc5a8162d7fd961a64a2ace6d184e72d27b4b
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
d431a04a41
gnu: Remove python-pytest-7.
* gnu/packages/check.scm (python-pytest-7): Delete variable.

Change-Id: I061bc31d096f837928e21e950f08e3db592564db
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
283a8feeb0
gnu: Remove python-pytest-6.
* gnu/packages/check.scm (python-pytest-6): Delete variable.

Change-Id: Ie38f20a6823cbf0878c645e720b9b5e3c4945157
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
739a189a14
gnu: python-seaborn: Use python-pytest-8.
* gnu/packages/python-xyz.scm (python-seaborn)[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: I31a95b37cad06b918a92bb0e73d6684507da1df2
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
e7c8bc07df
gnu: python-readchar: Use python-pytest-8.
* gnu/packages/machine-learning.scm (python-readchar)[native-inputs]:
Remove python-pytest; add python-pytest-8.

Change-Id: I4a879d7d6e591e3c3e0971c93b257cf763a07f41
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
e149072756
gnu: barectf: Use python-pytest-8.
* gnu/packages/instrumentation.scm (barectf)[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: I94e7a6ecec3c8291ee35acc373ed7a11e3fd8018
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
e1ad63af83
gnu: python-pytest-httpx: Use python-pytest-8.
* gnu/packages/python-check.scm (python-pytest-httpx)[native-inputs]:
Remove python-pytest; add python-pytest-8.

Change-Id: Ic8b7bf22a84b7ecb8c37996405f6d7b996cf3ce5
2026-01-24 21:22:45 +00:00
Sharlatan Hellseher
420dec4cbf
gnu: python-azure-core: Use python-pytest-8
* gnu/packages/python-web.scm (python-azure-core)[native-inputs]:
Remove python-pytest; add python-pytest-8.

Change-Id: I82a393735461681b3fa9112b582e87eb46700635
2026-01-24 21:22:44 +00:00
Sharlatan Hellseher
eac1b63d5b
gnu: python-boltons: Use python-pytest-8.
* gnu/packages/python-xyz.scm (python-boltons)[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: I50073f38a2a29f55708b152e895d01a662a844bc
2026-01-24 21:22:44 +00:00
Sharlatan Hellseher
a61bd3cf79
gnu: python-black: Use python-pytest-8.
* gnu/packages/python-xyz.scm (python-black)[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: I38f746beea5f3512812f01afb07ccab099c56cf5
2026-01-24 21:22:44 +00:00
Sharlatan Hellseher
293cd19996
gnu: python-coverage: Use python-pytest-8.
* gnu/packages/check.scm (python-coverage)[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: Ifea657387cd6a0d80ece14b82d3280f08be5d2d9
2026-01-24 21:22:44 +00:00
Sharlatan Hellseher
2d43e47992
gnu: python-docopt: Use python-pytest-8.
* gnu/packages/python-xyz.scm (python-docopt):[native-inputs]: Remove
python-pytest; add python-pytest-8.

Change-Id: I327218f7a1614aedd7c399824fae85c61e0fbec0
2026-01-24 21:22:44 +00:00
Sharlatan Hellseher
e0d1f8cdbc
gnu: Add python-pytest-8.
* gnu/packages/check.scm (python-pytest-8): New variable.

Change-Id: I5886e75b56efda89cf924e6ec0f91fba9121903c
2026-01-24 21:17:44 +00:00
Nguyễn Gia Phong
a97548af12
gnu: python-pytest: Update to 9.0.2.
* gnu/packages/check.scm (python-pytest): Update to 9.0.2.
  [native-inputs]: Remove python-wheel.

Change-Id: I10de9b291beabb23fdaa21149a6eaa8165b48c9c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:55 +00:00
Sharlatan Hellseher
1be8896834
gnu: python-hypothesis: Update to 6.150.2.
* gnu/packages/check.scm (python-hypothesis): Update to 6.150.2.
[source]: Switch to git-fetch providing tests.
[arguments] <test-flags>: Skip some problematic tests.
[phases]{chdir-to-source}: New phase.
[propagated-inputs]: Remove python-attrs-bootstrap and
python-exceptiongroup.
[native-inputs]: Remove python-wheel.

Change-Id: I1c247e745f03f9fd00e7c41a1f828074b3b78ccd
2026-01-24 19:15:55 +00:00
Nicolas Graves
0e2516bd58
gnu: yelp-tools: Switch to python-lxml-for-texlive.
This allows to decouple the pyproject-build-system for
texlive-bin and consequentially the whole world.

* gnu/packages/gnome.scm (yelp-tools)[native-inputs]: Replace
python-lxml by python-lxml-for-texlive.

Change-Id: I60970703cd667ecebc7269ee84b596f7c345aa40
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:55 +00:00
Nicolas Graves
054d771207
gnu: mallard-ducktype: Build with a custom build-system.
* gnu/packages/documentation.scm (mallard-ducktype)
[build-system, arguments]: Build using a custom build-system.

Change-Id: I56bc352ab62bf143bbe5d370dd68ff2b2e2bb75e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:54 +00:00
Nicolas Graves
9d1083145a
gnu: Add python-lxml-for-texlive.
* gnu/packages/xml.scm (python-lxml-for-texlive): New variable.

Change-Id: I736960de9bcf5ccf403678ca626904d65e70cff7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:54 +00:00
Nicolas Graves
53e419ade4
gnu: meson: Use a custom build-system.
This allows us to decouple meson and all its dependents from the
pyproject-build-system, and avoid a lot of rebuilds (rusts, llvm...).

* gnu/packages/build-tools.scm (meson)
[build-system]: Replace pyproject-build-system with a patched
gnu-build-system.
[arguments]<#:phases>: Adapt accordindly.
[native-inputs]: Replace python-setuptools by python-setuptools-bootstrap.

Change-Id: Ieb4b007847d567aad04734a62cfc6c07e2bb2f96
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:54 +00:00
Nicolas Graves
329c348634
gnu: Add python-setuptools-bootstrap.
This change is a combined commits, proposed in the following merge
requests:

- https://codeberg.org/guix/guix/pulls/5034
- https://codeberg.org/guix/guix/pulls/5770

As they are related to a new addition they are squashed to prevent bad
git bisects.

* gnu/packages/python-build.scm (python-setuptools-bootstrap): New variable.

Change-Id: I7677ede70a61b9cc39ae6e021fc2f1f1afaa8d25
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:54 +00:00
Nicolas Graves
4255205883
build-system/pyproject: Remove uneeded use of pyproject-guile-json.
* gnu/packages/bioinformatics.scm (python-bed-reader, python-gseapy)
* gnu/packages/chemistry.scm (gemmi, ringdecomposerlib, rdkit)
* gnu/packages/cinnamon.scm (libxapp)
* gnu/packages/cups.scm (hplip)
* gnu/packages/djvu.scm (ocrodjvu)
* gnu/packages/finance.scm (electron-cash)
* gnu/packages/gnome.scm (terminator)
* gnu/packages/image-processing.scm (insight-toolkit)
* gnu/packages/machine-learning.scm (onnxruntime, tensorflow-lite,
koboldcpp, python-tokenizers)
* gnu/packages/maths.scm (gmsh, z3, fp16)
* gnu/packages/music.scm (quodlibet)
* gnu/packages/photo.scm (lensfun)
* gnu/packages/python-science.scm (python-clarabel)
* gnu/packages/python-xyz.scm (python-orjson, python-libcst,
python-rpds-py, python-streamtracer, python-tiktoken)
* gnu/packages/rpm.scm (createrepo-c)
* gnu/packages/rust-apps.scm (maturin)
* gnu/packages/sugar.scm (sugar, sugar-datastore)
* gnu/packages/version-control.scm (mercurial, hg-commitsigs)
* gnu/packages/vpn.scm (python-proton-vpn-local-agent)
[arguments]<#:phases>: Remove uneeded use of pyproject-guile-json
extension.

* gnu/packages/python-xyz.scm (python-streamtracer)[arguments]
<#:phases>: Also rewrite 'check phase replacement.

Change-Id: I779c354120ada3d94f07a127b9ec5011e73254c2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:54 +00:00
Nicolas Graves
caea253853
build-system/cargo: Remove uneeded use of cargo-guile-json.
* gnu/packages/antivirus.scm (clamav)
* gnu/packages/freedesktop.scm (waypipe)
* gnu/packages/gnome.scm (librsvg)
* gnu/packages/kde-pim.scm (kdepim-addons)
* gnu/packages/language.scm (libchewing)
* gnu/packages/rust-apps.scm (helvum)
* gnu/packages/shells.scm (fish):
[arguments]<#:phases>: Remove uneeded use of cargo-guile-json
extension.

Change-Id: I041819515585777a3d63945b755d71e607fa0650
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:53 +00:00
Nicolas Graves
e17b4f0484
build-system/cargo: Using autoload for (json) module.
This allows to avoid the `with-extensions` everywhere.

* guix/build/cargo-build-system.scm: Using autoload for (json)
module.

Change-Id: Iecf4ba8cfeed4b838a815288a59d35416b41553e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:53 +00:00
Nicolas Graves
35776571e4
build-system/pyproject: Using autoload for (json) module.
This allows to avoid the `with-extensions` everywhere.

* guix/build/pyproject-build-system.scm: Using autoload for (json)
module.

Change-Id: Ie31579b377df34688a2cd4959f517b734eff5ffa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:53 +00:00
Nguyễn Gia Phong
c3ed22e115
build-system/pyproject: ensure-no-mtimes-pre-1980: Fix ftw use.
In (ftw startname proc), proc should return #t to continue,
or any other value to stop.

* guix/build/pyproject-build-system.scm (ensure-no-mtimes-pre-1980):
  Mirror the implementation in guix/build/pyproject-build-system.scm.

References: https://www.gnu.org/software/guile/manual/html_node/File-Tree-Walk.html#index-ftw
Change-Id: Ifb5d4ab35dfac0c164ea1ac7cf2a1fdf043d1d22
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:53 +00:00
Nicolas Graves
2ef3da0266
build-system/pyproject: Decouple from python-build-system.
This is a step in the progressive deprecation of the
python-build-system.  It will later allow to deprecate and drop the
build-system without needing a world rebuild.

* guix/build/pyproject-build-system.scm
(python-version, python-output, site-packages)
(add-installed-pythonpath, add-install-to-pythonpath)
(add-install-to-path, ensure-no-times-pre-1980)
(enable-bytecode-determinism, ensure-no-cythonized-files)
(check): Dropped unused argument.
(wrap, sanity-check, rename-pth-file): Raw copy from
guix/build/python-build-system.scm. Drop the import.  Run the
sanity-check phase before the check phase.

Change-Id: I2d259ab464e4e188c3a8430caef271cbcd33eb36
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-24 19:15:53 +00:00
Foster Hangdaan
81c2963e07
gnu: endless-sky: Update to 0.10.16.
* gnu/packages/games.scm (endless-sky): Update to 0.10.16.
[inputs]: Add flac and libavif.

Change-Id: I461b27bf1507a41b37de5a30d53de66a5a106d1b
2026-01-24 16:29:53 +01:00
Yelninei
f0ab81c097
gnu: libgit2: Fix tests on 32bit systems.
This prevents a discrepancy between git_fs_path_lstat using different size
stat structs.

See https://github.com/libgit2/libgit2/issues/7169

* gnu/packages/version-control.scm (libgit2-1.9): Compile with
-D_FILE_OFFSET_BITS=64 on 32bit system.

Change-Id: Iab7df2c930b0fc0cb9030b754ad7b668d49a7034
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4860
2026-01-24 12:32:44 +01:00
Mathieu Lirzin
90defc6a0f
gnu: clojure-tools-deps-alpha: Update to 0.15.1254.
* gnu/packages/clojure.scm (clojure-tools-deps-alpha): Update to 0.15.1254.

Change-Id: I8a1564f67c9bf3a1e27e4294527f250503346c19
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #5162
2026-01-24 12:32:44 +01:00
Mathieu Lirzin
f816e9a6df
gnu: clojure-tools-cli: Update to 1.3.250.
* gnu/packages/clojure.scm (clojure-tools-cli): Update to 1.3.250.

Change-Id: I6de8f1fd991297158c3aa65ed8e8d5c1d120b13a
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-01-24 12:32:43 +01:00