Files
nixpkgs/pkgs/development/python-modules/nixpkgs-plugin-update/default.nix
T
Austin Horstman 3d3db7c878 nixpkgs-plugin-update: disable updateScript passthru
Causes error when running maintainer scripts for updating for a specific
maintainer.

"/nix/store/w35a8nwnl6vbrs7xf072iz4h0bzd9lrs-nix-update-1.14.0/lib/python3.13/site-packages/nix_update/update.py",
line 78, in fetch_new_version
    raise UpdateError(msg)
nix_update.errors.UpdateError: Could not find a url in the derivations
src attribute

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-03-12 09:48:15 -05:00

48 lines
759 B
Nix

{
lib,
buildPythonPackage,
uv-build,
gitpython,
packaging,
ruff,
mypy,
}:
buildPythonPackage {
pname = "nixpkgs-plugin-update";
version = "0.1.0";
pyproject = true;
src = ./nixpkgs-plugin-update;
build-system = [ uv-build ];
dependencies = [
gitpython
packaging
];
nativeCheckInputs = [
ruff
mypy
];
postInstallCheck = ''
ruff check
mypy
'';
# NOTE: Causes "Could not find a url in the derivations src attribute" crash in maintainer scripts
passthru.updateScript = null;
meta = {
description = "Library for updating plugin collections in Nixpkgs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
teto
PerchunPak
khaneliman
];
};
}