Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub,
# build-system hatchling,
# dependencies aiohttp, attrs, frozendict, inject, loguru, nix, nix-prefetch-git, nonbloat-db, nurl, platformdirs, typer,
# tests pytestCheckHook, aioresponses, pytest-asyncio, pytest-cov-stub, pytest-mock,}:buildPythonPackage rec { pname = "nixpkgs-updaters-library"; version = "1.2.0"; pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub { owner = "PerchunPak"; repo = "nixpkgs-updaters-library"; tag = "v${version}"; hash = "sha256-MCMqqAGl6OTOapC3K0DNTOmg2Lv2KqXenEgB5sIZR5U="; };
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 attrs frozendict inject loguru nonbloat-db platformdirs typer nix-prefetch-git nurl ];
nativeCheckInputs = [ 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/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ perchun ]; };}