Commit Graph

2018 Commits

Author SHA1 Message Date
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
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
quantenzitrone
55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00
nixpkgs-ci[bot]
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 Daniels
006ecdbdeb treewide: fix typos (#479869) 2026-01-24 21:36:44 +00:00
Matt Sturgeon
e6959ad528 buildPython*: extend overrideStdenvCompat to fixed-point arguments (#477208) 2026-01-20 11:27:58 +00:00
Yueh-Shun Li
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 Li
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
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 Weinelt
8b9ad97235 buildPython*: support fixed-point arguments (#271387) 2026-01-04 20:51:07 +00:00
Matt Sturgeon
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
Aleksana
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 Weinelt
97f7f1b327 python315: 3.15.0a2 -> 3.15.0a3 (#471455) 2025-12-18 16:57:55 +00: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 Weinelt
532bd8d5e1 buildPythonPackage: chore: remove unnecessary set update for passthru value (#471681) 2025-12-17 22:02:30 +00:00
nixpkgs-ci[bot]
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 Keller
44b2026a4c pypy: remove explicit darwin minimum SDK (#471446) 2025-12-17 12:42:05 +00:00
nixpkgs-ci[bot]
7d328d38a6 Merge staging-next into staging 2025-12-17 00:18:04 +00:00
Philip Taron
5658916132 python2: fix paths for structuredAttrs (#470566) 2025-12-16 21:41:53 +00:00
Martin Weinelt
db88301a81 python315: 3.15.0a2 -> 3.15.0a3
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-3
2025-12-16 21:41:42 +01:00
Niklas Korz
b92751652e pypy: remove explicit darwin minimum SDK
PyPy sets an explicit minimum SDK version for darwin that is much older
than what we we default to on nixpkgs (currently 14.0).
Simply removing the explicit flag makes it use our default instead.

This fixes a build failure where PyPy tries to access APIs that are not
available in the macOS SDK it is targetting.
This is technically not relevant for upstream as this is an opt-in
warning which we have recently enabled by default (as error) on
nixpkgs, but they too should bump the minimum target to at least 10.15
from their current target of 10.13.
2025-12-16 21:13:05 +01:00
nixpkgs-ci[bot]
98b2b03bb4 Merge staging-next into staging 2025-12-15 12:10:12 +00:00
Ihar Hrachyshka
a269d900c4 treewide: remove remaining meta = with lib; 2025-12-14 15:16:00 -05:00
Stefan Frijters
b9195a7fb6 python2: fix paths for structuredAttrs
Without this, things like zlib are not found.
2025-12-14 00:53:58 +01:00
nixpkgs-ci[bot]
9d911c99bc Merge staging-next into staging 2025-12-12 12:08:28 +00:00
dotlambda
195e2bc55c python3Packages.setuptools-rust: fix cross build for all setuptools-rust based packages (#467817) 2025-12-11 06:25:13 +00:00
Matt Sturgeon
553a6c3d3a buildPython*: preserve overrideStdenvCompat on subsequent overrides
This is needed to support the deprecated method of overriding `stdenv`
via `overridePythonAttrs`.
2025-12-11 01:15:17 +00:00
Matt Sturgeon
32ecc2256b buildPython*: remove stdenv arg in overrideStdenvCompat
Avoid passing `stdenv` to the underlying function when it is already
handled in overrideStdenvCompat.
2025-12-11 01:07:55 +00:00
Matt Sturgeon
9d87f178ed buildPython*: switch overrideStdenvCompat to mirrorFunctionArgs
The underlying `mk-python-derivation.nix` functions do not have `stdenv`
in their functionArgs, so it was redundant to explicitly remove it.
2025-12-11 01:07:55 +00:00
Matt Sturgeon
37655d3b36 buildPython*: rename override param in makeOverridablePythonPackage
`fdrv` → `newArgs`; the parameter is not a derivation, so fdrv is
confusing.
2025-12-11 01:07:55 +00:00
nixpkgs-ci[bot]
795ce4c7c1 Merge staging-next into staging 2025-12-11 00:19:41 +00:00
Yueh-Shun Li
ff13d8ce45 makeOverridablePythonPackage: simplify implementation and make compatible with <pkg>.overrideAttrs (#267296) 2025-12-10 19:06:55 +00:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Yueh-Shun Li
ca6c090082 makeOverridablePythonPackage: take care of overrideAttrs
Make it possible to mix overridePythonAttrs and overrideAttrs, i.e.
((<pkg>.overrideAttrs (_: { foo = "a"; })).overridePythonAttrs (_: { })).foo now works

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-10 19:22:04 +08:00
Yueh-Shun Li
e8302431ef makeOverridablePythonPackage: simplify implementation
Attach overridePythonAttrs by attribute set update
instead of `stdenv.mkDerivation`'s `passthru`.

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-10 19:20:01 +08:00