Commit Graph
135 Commits
Author SHA1 Message Date
Sigmanificient fdbced07fe python2Packages.pygobject2: drop 2026-01-15 01:01:16 +01:00
Sigmanificient af931a7a0e python2Packages.pygtk: drop 2026-01-15 01:01:06 +01:00
Sigmanificient bdedefce60 python2Packages.setuptools-scm: drop 2026-01-14 04:38:23 +01:00
Sigmanificient e3dd84b688 python2Packages.scandir: drop 2026-01-14 04:38:23 +01:00
Sigmanificient 46bbd4592b python2Packages.futures: drop 2026-01-14 04:38:23 +01:00
Sigmanificient 7b46a2bdd2 python2Packages.enum: drop 2026-01-14 04:38:23 +01:00
Sigmanificient 19816aeeb1 python2Packages.typing: drop 2026-01-14 04:38:22 +01:00
Gutyina Gergő 70f39947e1 python2Packages.typing: remove superfluous pythonOlder and pythonAtLeast 2026-01-14 03:10:55 +01:00
Gutyina Gergő ebbf76a407 python2Packages.pytest: remove superfluous pythonOlder 2026-01-14 03:10:55 +01:00
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00
Ihar HrachyshkaandWolfgang Walther 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
Wolfgang Walther 11e45413f5 maintainers: drop lsix
Reacted to 0 out of 16 maintainer pings in the least 180 days.
2025-12-09 21:09:08 +01:00
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
phaerandWeijia Wang 978931902c maintainers: drop abbradar
Listed as maintainer for ~170 packages but last commit that made it to
master was 6786ceb in February 2022.

Unresponsive on PRs, such as i.e. #411522
2025-08-22 09:49:27 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Martin Weinelt ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Domen KožarandGitHub 19b476ebef various: remove domenkozar from maintainers (#415576) 2025-06-11 10:14:54 +00:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Sigmanificient 91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
Benjamin Sparks 79ea09f21f python2Packages.hypothesis: remove enum34 2025-03-12 16:24:53 +01:00
Bryan Lai 673076b0a8 python2Packages.pygtk: fix build w/ -fpermissive
... and adopt the package: add @bryango to maintainers.
2024-12-25 19:49:02 +08:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Eric FirestoneandGitHub 1499b7cdc3 python2-modules: Add a README explaining that Python 2 is no longer supported (#348583)
Add a README explaining that Python 2 is no longer supported
2024-10-31 17:20:08 +08:00
Artturin f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
github-actions[bot]andGitHub 9108a87017 Merge master into staging-next 2024-09-24 18:04:41 +00:00
Emily c4639f8cbc python27Packages.more-itertools: use unittestCheckHook
I thought that the Python 2 package set was entirely separate from
the Python 3 one, but this appears to actually be using the main
nose package. The actual code doesn’t use nose at all, and their
`tox.ini` uses unittest, so let’s fix that…
2024-09-23 00:13:04 +01:00
Philip TaronandGitHub 4160ccc634 treewide: handle *Phases variables __structuredAttrs-agnostically (#339117) 2024-09-07 09:17:57 -07:00
AleksanaandGitHub e272cd8171 python2Packages.wcwidth: fix build (#292007) 2024-09-04 13:26:16 +08:00
Yueh-Shun Li 054c5f0e10 treewide: handle preDistPhases __structuredAttrs-agnostically
Always specify the preDistPhases attribute as a list instead of a string.

Append elements to the preDistPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

Handle element insertion before a specific element using string
substitution as before, but handle both structured and unstructured
attributes.
2024-09-03 05:33:59 +08:00
Sigmanificient 63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Jörg Thalheimandaleksana 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Bryan Lai 5ebb67ecc9 python2Packages.wcwidth: @bryango in maintainers
Add myself in maintainers, and make sure that python3 maintainers is
_not_ pinged for python2 issues.
2024-07-27 15:47:12 +08:00
Bryan Lai d34d5280d1 python2Packages.wcwidth: fix build
As of version 0.2.13 upstream still supports python2. In the future, this
package should be dropped or pinned to the last working version after the
final release for python2.
2024-07-27 15:47:12 +08:00
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Alexis Hildebrandt bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Sandro Jäckel 653837881e treewide: replace lib/${python.libPrefix}/site-packages with its shorthand ${python.sitePackages}
which should be always preferred
2024-01-30 19:56:57 +01:00
K900 887e96e875 Merge remote-tracking branch 'origin/master' into staging-next 2024-01-02 10:55:23 +03:00
Sergei Trofimovich 46b946ea18 pypy2Packages.attrs: fix tests eval
Without the change `tests` eval fails as:

    $ nix build --no-link -f. pypy2Packages.attrs.tests
    error:
       error: path 'pkgs/development/python2-modules/attrs/tests.nix' does not exist
2023-12-30 16:01:14 +00:00
Martin Weinelt 936386b0c1 python2Packages.wcwidth: fix eval 2023-12-20 20:46:23 +01:00
Bryan LaiandBrian Leung 8a3eb935ac python2Packages.pycairo: backport test fix
Fix pytest failure of `test_svg_surface_get_document_unit`.

This fix is backported to python 2 from upstream. Upstream has dropped
support for python 2, but the fix works regardless of python versions.
Hence we backport the fix for python 2, since many nix packages still
depend on python2Packages.pycairo.

Upstream: https://github.com/pygobject/pycairo/commit/678edd94d8a6dfb5d51f9c3549e6ee8c90a73744
Co-authored-by: Brian Leung <29217594+leungbk@users.noreply.github.com>
2023-11-22 20:55:23 +08:00
Adam Joseph bc2d598878 treewide: change pythonForBuild to pythonOnBuildForHost 2023-11-05 17:42:12 -08:00
github-actions[bot]andGitHub c90f3611dc Merge master into staging-next 2023-08-06 00:02:21 +00:00
Theodore Ni 809de4d210 python2.pkgs.wcwidth: add missing python2 dependency 2023-08-03 07:49:32 -07:00
Theodore Ni 9058cdef7d python2.pkgs.backports-functools-lru-cache: init at 1.6.6 2023-08-03 07:49:18 -07:00
github-actions[bot]andGitHub 82235cc6e6 Merge staging-next into staging 2023-07-24 00:02:59 +00:00
Sandro Jäckel cf6c96533b treewide: reduce packages I maintainer 2023-07-23 19:30:22 +02:00
SandroandGitHub c7ba59e485 Merge pull request #217565 from winterqt/bootstrapped-pip-remove-extraneous-pythonpath-entry 2023-07-19 15:22:52 +02:00