00c40f1069
We have machinery for Python packaging, so let’s make use of it. This also helps unblock moving `by-name` overrides out of `all-packages.nix`, as it was previously being used to work around `nixpkgs-vet` forbidding the direct reference to the path.
43 lines
625 B
Nix
43 lines
625 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
uv-build,
|
|
gitpython,
|
|
ruff,
|
|
mypy,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "nixpkgs-plugin-update";
|
|
version = "0.1.0";
|
|
format = "pyproject";
|
|
|
|
src = ./nixpkgs-plugin-update;
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
gitpython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
ruff
|
|
mypy
|
|
];
|
|
|
|
postInstallCheck = ''
|
|
ruff check
|
|
mypy
|
|
'';
|
|
|
|
meta = {
|
|
description = "Library for updating plugin collections in Nixpkgs";
|
|
license = lib.licenses.mit;
|
|
maintainers = [
|
|
lib.maintainers.teto
|
|
lib.maintainers.perchun
|
|
lib.maintainers.khaneliman
|
|
];
|
|
};
|
|
}
|