push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
aiohttp,
frozendict,
inject,
joblib,
loguru,
nix,
nix-prefetch-git,
nurl,
platformdirs,
pydantic,
typer,
# tests
writableTmpDirAsHomeHook,
pytestCheckHook,
aioresponses,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
}:
buildPythonPackage rec {
pname = "nixpkgs-updaters-library";
version = "3.0.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "PerchunPak";
repo = "nixpkgs-updaters-library";
tag = "v${version}";
hash = "sha256-0N88valEw+QElMjy84TBKGuqqh9anKhHdW0jQfQ4qd4=";
};
postPatch = ''
substituteInPlace nupd/executables.py \
--replace-fail '"nurl"' '"${lib.getExe nurl}"' \
--replace-fail '"nix-prefetch-url"' '"${lib.getExe' nix "nix-prefetch-git"}"' \
--replace-fail '"nix-prefetch-git"' '"${lib.getExe' nix-prefetch-git "nix-prefetch-git"}"'
'';
build-system = [ hatchling ];
dependencies = [
aiohttp
frozendict
inject
joblib
loguru
platformdirs
pydantic
typer
];
nativeCheckInputs = [
writableTmpDirAsHomeHook
aioresponses
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
];
meta = {
description = "Boilerplate-less updater library for Nixpkgs ecosystems";
homepage = "https://github.com/PerchunPak/nixpkgs-updaters-library";
changelog = "https://github.com/PerchunPak/nixpkgs-updaters-library/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ perchun ];
};
}