Commit Graph

69 Commits

Author SHA1 Message Date
Robert Schütz
0fdd6cabaa buildbotPackages.buildbot-worker: don't check metadata 2026-07-08 19:21:39 -07:00
Robert Schütz
51adff44f6 buildbotPackages.buildbot-pkg: fix version in setup.py 2026-07-08 19:21:38 -07:00
Ryan Omasta
5adeb51195 buildbot{,-full,-ui,-worker,-plugins}: switch to pyproject 2026-05-20 23:30:24 -06: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
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
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
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
zowoq
bbdeba7418 buildbot: 4.2.1 -> 4.3.0
Changelog: https://github.com/buildbot/buildbot/releases/tag/v4.3.0
2025-08-21 08:40:14 +10: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
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03: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
Yueh-Shun Li
cc1e059ce6 buildbotPackages.buildbot: use the locale specification from buildPythonApplicaiton
Also remove glibcLocale from nativeCheckInputs,
without which the package still builds.
2025-03-08 00:29:57 +08:00
github-actions[bot]
477a9c6eb6 Merge master into staging-next 2025-01-11 06:04:16 +00:00
zowoq
f113bc8e36 buildbot: 4.2.0 -> 4.2.1
Changelog: https://github.com/buildbot/buildbot/releases/tag/v4.2.1
2025-01-11 11:00:19 +10:00
Jörg Thalheim
298b99bc6e Revert "buildbot: python3Packages.service-identity: 24.1.0 -> 24.2.0"
This reverts commit 7f9857f4bd.

We update the global version now instead.
2025-01-05 11:12:12 +01:00
zowoq
7f9857f4bd buildbot: python3Packages.service-identity: 24.1.0 -> 24.2.0 2025-01-05 18:41:50 +10:00
zowoq
942ea8c7af Revert "buildbot: add patch for compatibility with twisted 24.11.0"
This reverts commit 0dd7250c73.

fixed in 4.2.0 edb59b6d8e
2025-01-04 20:08:03 +10:00
Jörg Thalheim
1720332faf buildbot: 4.1.0 -> 4.2.0 (#364052) 2025-01-04 10:49:35 +01:00
zowoq
0dd7250c73 buildbot: add patch for compatibility with twisted 24.11.0 2025-01-03 11:12:11 +10:00
zowoq
edb59b6d8e buildbot: 4.1.0 -> 4.2.0
https://github.com/buildbot/buildbot/releases/tag/v4.2.0
2024-12-27 09:08:48 +10:00
Andreas Pelme
d65f8a2c32 buildbot: Remove broken on Darwin.
It seems to me that buildbot is not broken on Darwin.

This build failure was referenced from a comment: https://hydra.nixos.org/build/243534318/nixlog/6.

I was able to successfully build, run and get a basic buildbot master, worker
and web ui going on my aarch64-darwin machine:

```
❯ nix run .#nix-info -- -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.0.0, macOS 15.0.1`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.1
System type: aarch64-darwin
Additional system types:
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /Users/andreas/.config/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/1phn7b1smb3g9jqz7v39q13wlyji2msz-lix-2.91.1/share`
 - nixpkgs: `not found`

❯ nix build .#buildbot-full
❯ result/bin/buildbot create-master /tmp/my_master
mkdir /tmp/my_master
creating /tmp/my_master/master.cfg.sample
creating database (sqlite:///state.sqlite)
buildmaster configured in /tmp/my_master
❯ mv /tmp/my_master/master.cfg.sample /tmp/my_master/master.cfg
❯ result/bin/buildbot start /tmp/my_master
Following twistd.log until startup finished..
The buildmaster appears to have (re)started correctly.

❯ nix build .#buildbot-worker
❯ result/bin/buildbot-worker create-worker /tmp/my_worker localhost example-worker pass
mkdir /tmp/my_worker
mkdir /tmp/my_worker/info
Creating info/admin, you need to edit it appropriately.
Creating info/host, you need to edit it appropriately.
Not creating info/access_uri - add it if you wish
Please edit the files in /tmp/my_worker/info appropriately.
worker configured in /tmp/my_worker
❯ result/bin/buildbot-worker start /tmp/my_worker
Following twistd.log until startup finished..
The buildbot-worker appears to have (re)started correctly.
```
2024-12-12 11:34:21 +10: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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Jörg Thalheim
0a4ee602e8 buildbot: get rid of python overrides
we only had moto overriden because we needed to rebuild some other
libraries. This is no longer the case.
2024-10-24 08:00:05 +02:00
Jörg Thalheim
9584ba7f85 nixos/buildbot: use python version used of the buildbot package
Since the buildbot package can be overwritten, it can be build against a
different python version.
This pull request makes sure we don't use the wrong python version.
This makes using buildbot-nix easier for both nixpkgs unstable and
nixpkgs stable.
2024-10-23 22:16:55 +11:00
zowoq
c47f552fc3 buildbot: 4.0.3 -> 4.1.0
Changelog:

https://github.com/buildbot/buildbot/releases/tag/v4.0.4
https://github.com/buildbot/buildbot/releases/tag/v4.1.0
2024-10-19 09:14:21 +10:00
R. Ryantm
e19ebda614 buildbot: 4.0.2 -> 4.0.3 2024-09-28 16:14:48 +10: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
zowoq
8981a04d4e buildbot: 4.0.1 -> 4.0.2
Changelog: https://github.com/buildbot/buildbot/releases/tag/v4.0.2
2024-08-04 09:19:36 +10:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
zowoq
a9fd70b263 buildbot: 4.0.0 -> 4.0.1 2024-07-13 09:05:50 +10:00
Martin Weinelt
9b79a05ae1 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/flexcache/default.nix
- pkgs/development/python-modules/flexparser/default.nix
- pkgs/development/python-modules/odp-amsterdam/default.nix
- pkgs/development/python-modules/pint/default.nix
- pkgs/development/python-modules/uncertainties/default.nix
- pkgs/top-level/python-packages.nix
2024-07-01 01:07:21 +02:00
zowoq
7244df6927 buildbot: 3.11.3 -> 4.0.0
sometimes takes a while for upstream to publish on pypi so switch to using github source for master, pkg, worker and github releases for the plugins which require built assets
2024-06-30 13:26:51 +10:00
Martin Weinelt
abdf5dc772 treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +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
Jörg Thalheim
eb77fcd0b1 buildbot: apply upstream fix for gitpoller 2024-06-03 12:40:19 +02:00
R. Ryantm
02d17ed973 buildbot: 3.11.2 -> 3.11.3 2024-05-23 13:05:16 +10:00
zowoq
6117d3d5c9 buildbot: 3.11.1 -> 3.11.2 2024-05-18 11:35:11 +10:00
Martin Weinelt
1637cd92e8 buildbot: relax twisted constraint 2024-03-12 18:25:11 +01:00
Jade Lovelace
ebf346ff04 buildbot: tie the knot through a scope to make it overridable
Currently it is impossible to overlay buildbot since all the references
between components are directly bound to the values in scope. Let's fix
this by introducing a scope so you can overrideScope parts of buildbot.

I also changed buildbot-worker to use our overridden python, which is no
functional change, but makes things more consistent.
2024-03-08 13:42:17 -08:00
zowoq
0873ccf9d7 buildbot: add buildbot-plugins.react-wsgi-dashboards to update script
should have been added in 3be0f4c18a
2024-03-06 09:36:25 +10:00
R. Ryantm
8f7f11daef buildbot: 3.11.0 -> 3.11.1 2024-03-06 09:36:18 +10:00
zowoq
3be0f4c18a buildbot-plugins.react-wsgi-dashboards: init at 3.11.0 2024-01-29 15:01:26 +10:00
zowoq
59ba51d251 buildbot: 3.10.1 -> 3.11.0
Changelog: https://github.com/buildbot/buildbot/releases/tag/v3.11.0
2024-01-29 15:01:26 +10:00
Felix Buehler
63f5f08857 python311Packages.zope-*: rename from zope_* 2024-01-06 21:04:16 +01:00
zowoq
9051cab202 buildbot-plugins.react-grid-view: init at 3.10.1 2024-01-05 11:41:19 +10:00
zowoq
6b6eb04575 buildbot-plugins.react-waterfall-view: init at 3.10.1 2024-01-05 11:41:19 +10:00
zowoq
a64cc4682e buildbot-plugins.react-console-view: init at 3.10.1 2024-01-05 11:41:19 +10:00