55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
importlib-resources,
|
|
jsonschema,
|
|
packaging,
|
|
pyyaml,
|
|
referencing,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
versionCheckHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "kubernetes-validate";
|
|
version = "1.33.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "kubernetes_validate";
|
|
inherit version;
|
|
hash = "sha256-U2Nb9mpeBJASCa5/av8OjBnvoUXMmpCHI0TJKjE1Opk=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
importlib-resources
|
|
jsonschema
|
|
packaging
|
|
pyyaml
|
|
referencing
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
pythonImportsCheck = [ "kubernetes_validate" ];
|
|
|
|
meta = {
|
|
description = "Module to validate Kubernetes resource definitions against the declared Kubernetes schemas";
|
|
homepage = "https://github.com/willthames/kubernetes-validate";
|
|
changelog = "https://github.com/willthames/kubernetes-validate/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ lykos153 ];
|
|
mainProgram = "kubernetes-validate";
|
|
};
|
|
}
|