Commit Graph
2035 Commits
Author SHA1 Message Date
SandroandGitHub 5b90dbcbe6 stestrCheckHook: init (#489221) 2026-02-23 13:28:12 +00:00
Vinetos 38af642d2f stestrCheckHook: init
This adds a useful hook to be used for projects that use stestr,
it is primiative at the moment but covers most scenarios for using
it.

This PR also changes a Python module to start using it, once it
lands, follow up PRs can update all of them to use it tree-wide.

Signed-off-by: Vinetos <contact+git@vinetos.fr>
2026-02-21 22:20:21 +01:00
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00
Martin Weinelt 77ca080475 python310: drop
Reaches end of life before NixOS 26.05 and therefore has to leave early.
2026-02-15 03:17:23 +01:00
K900 15a6983bd3 Merge remote-tracking branch 'origin/master' into staging-next 2026-02-11 21:30:26 +03:00
Martin Weinelt ca2468533b python315: 3.15.0a5 -> 3.15.0a6
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-6
2026-02-11 18:44:41 +01:00
Doron BeharandColin 6421482683 python3: let lib.mkScopeWithSplicing do its job
Fixes #476822 and #480467 . By itself this change doesn't trigger many
rebuilds, but it is easier to justify it in conjunction with the
previous commit.

Co-Authored-By: Colin <colin@uninsane.org>
2026-02-09 12:38:08 +02:00
K900 3c4102eef4 Merge remote-tracking branch 'origin/staging-next' into staging 2026-02-06 15:58:23 +03:00
quantenzitrone 55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00
Martin Weinelt b428db0f48 python313: 3.13.11 -> 3.13.12
https://docs.python.org/release/3.13.12/whatsnew/changelog.html

Fixes: CVE-2026-1299, CVE-2025-11468, CVE-2025-15282, CVE-2026-0672,
       CVE-2026-0865
2026-02-04 03:44:12 +01:00
Martin Weinelt 08371b96c3 python314: 3.14.2 -> 3.14.3
https://docs.python.org/release/3.14.3/whatsnew/changelog.html

Fixes: CVE-2026-1299, CVE-2025-11468, CVE-2025-15282, CVE-2026-0672,
       CVE-2026-0865
2026-02-04 03:38:12 +01:00
Philip TaronandGitHub 76563817ee wrapPythonPrograms: support structuredAttrs, modify gi-docgen and freecell-solver to verify (#471986) 2026-01-31 15:52:13 +00:00
nixpkgs-ci[bot]andGitHub 79424fc2c3 Merge staging-next into staging 2026-01-30 12:11:07 +00:00
Stefan Frijters 052e8a9c58 python3.setupHook: use replaceVars instead of substituteAllInPlace 2026-01-28 17:43:58 +01:00
K900 3ac81a5564 Merge remote-tracking branch 'origin/staging-next' into staging 2026-01-26 21:15:56 +03:00
nixpkgs-ci[bot]andGitHub 4f189086d0 Merge master into staging-nixos 2026-01-26 18:08:53 +00:00
quantenzitrone 7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
quantenzitrone c7c77c1aee treewide: remove all uses of 'with xorg;' in pkgs
this shouldn't create any rebuilds

this was done manually by grepping for `with xorg` and `with pkgs.xorg`
2026-01-25 22:26:00 +01:00
Michael DanielsandGitHub 006ecdbdeb treewide: fix typos (#479869) 2026-01-24 21:36:44 +00:00
nixpkgs-ci[bot]andGitHub 635cb3e856 Merge staging-next into staging 2026-01-20 12:08:50 +00:00
Matt SturgeonandGitHub e6959ad528 buildPython*: extend overrideStdenvCompat to fixed-point arguments (#477208) 2026-01-20 11:27:58 +00:00
Martin WeineltandGitHub f85ec1fc02 buildPython*: run runtime dependency check hook for wheels (#480159) 2026-01-19 18:20:44 +00:00
Yueh-Shun LiandMatt Sturgeon de48b6a845 buildPython*: extend overrideStdenvCompat to fixed-point arguments
with `passthru.__stdenvPythonCompat`

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-01-19 14:29:47 +08:00
Yueh-Shun Li 5b114f0534 buildPython*: overrideStdenvCompat: lower warnings down to the stdenv override value
If Nix supports lazy attribute names in the future,
this change will make `<python package>.override` warning-free
and make such warning (or future throw) remediateable
via another override.
2026-01-19 14:29:47 +08:00
Yueh-Shun LiandMatt Sturgeon 4ef0c2ded4 buildPython*: overrideStdenvCompat: abstract warning
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-01-19 14:29:41 +08:00
Martin Weinelt 6a2319f8af python315: 3.15.0a4 -> 3.15.0a5
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-5
2026-01-15 00:50:06 +01:00
Martin Weinelt 7465728763 buildPython*: run runtime dependency check hook for wheels 2026-01-14 21:58:06 +01:00
Martin Weinelt c06e838d65 python315: 3.15.0a3 -> 3.15.0a4
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-4
2026-01-14 01:38:58 +01:00
Ben Siraphob c7e10647ea treewide: fix typos 2026-01-13 14:45:11 -05:00
Michael Daniels 5ed07317e9 treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00
Martin WeineltandGitHub 8b9ad97235 buildPython*: support fixed-point arguments (#271387) 2026-01-04 20:51:07 +00:00
193be27bbf buildPython*: include package name in stdenv warning
Co-authored-by: Leona Maroni <dev@leona.is>
2026-01-04 21:21:50 +01:00
dmyTRUEk 2c7ad72241 mk-python-derivation: fix typo 2026-01-01 14:13:59 +02:00
AleksanaandGitHub a48f11c5bd python3Packages.setuptools-rust: fix python version inconsistency (#473299) 2025-12-23 03:27:20 +00:00
aleksana a05b9af428 python3: expose all splices for use with hooks 2025-12-22 22:25:12 +08:00
K900 596f58fc1c Merge remote-tracking branch 'origin/master' into staging-next 2025-12-18 21:09:58 +03:00
Martin WeineltandGitHub 97f7f1b327 python315: 3.15.0a2 -> 3.15.0a3 (#471455) 2025-12-18 16:57:55 +00:00
Stefan Frijters d89172980b wrapPythonPrograms: support structuredAttrs
$pythonPath can be an array - if we don't expand it we only get the first element.
2025-12-18 12:24:28 +01:00
Yueh-Shun Li 7e1f654883 buildPython*: format expressions 2025-12-18 17:55:00 +08:00
Yueh-Shun Li 0969c66247 buildPython*: support fixed-point arguments via lib.extendMkDerivation
Postpone formatting to minimize diff and to ease merging.
2025-12-18 17:55:00 +08:00
Yueh-Shun Li fb9727a198 makeOverridablePythonPackage: allow buildPython* to take fixed-point arguments 2025-12-18 17:55:00 +08:00
K900 453752195a Merge remote-tracking branch 'origin/master' into staging-next 2025-12-18 09:57:58 +03:00
Martin WeineltandGitHub 532bd8d5e1 buildPythonPackage: chore: remove unnecessary set update for passthru value (#471681) 2025-12-17 22:02:30 +00:00
nixpkgs-ci[bot]andGitHub 4fa909c6b1 Merge master into staging-next 2025-12-17 15:26:13 +00:00
Yueh-Shun Li 353eec600b buildPythonPackage: chore: remove unnecessary set update 2025-12-17 22:17:22 +08:00
Arne KellerandGitHub 44b2026a4c pypy: remove explicit darwin minimum SDK (#471446) 2025-12-17 12:42:05 +00:00
nixpkgs-ci[bot]andGitHub 7d328d38a6 Merge staging-next into staging 2025-12-17 00:18:04 +00:00
Philip TaronandGitHub 5658916132 python2: fix paths for structuredAttrs (#470566) 2025-12-16 21:41:53 +00:00