Unverified Commit c9fa0a3a authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.kubernetes-validate: init at 1.31.0 (#356174)

parents b7b46824 720170e0
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -14249,6 +14249,17 @@
    githubId = 7910815;
    name = "Alex McGrath";
  };
  lykos153 = {
    email = "silvio.ankermann@cloudandheat.com";
    github = "Lykos153";
    githubId = 6453662;
    name = "Silvio Ankermann";
    keys = [
      {
        fingerprint = "8D47 6294 7205 541C 62A4  9C88 F422 6CA3 971C 4E97";
      }
    ];
  };
  lyn = {
    name = "Lyn";
    matrix = "@lynatic:catgirl.cloud";
+4 −0
Original line number Diff line number Diff line
{
  python3Packages,
}:
python3Packages.toPythonApplication python3Packages.kubernetes-validate
+56 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  importlib-resources,
  jsonschema,
  packaging,
  pyyaml,
  referencing,
  typing-extensions,
  pytestCheckHook,
  versionCheckHook,
}:
buildPythonPackage rec {
  pname = "kubernetes-validate";
  version = "1.31.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "willthames";
    repo = "kubernetes-validate";
    tag = "v${version}";
    hash = "sha256-vxsftuipw0rHQIngxKlPHwBIW+rYAjfnEEaJDKmPyfQ=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    importlib-resources
    jsonschema
    packaging
    pyyaml
    referencing
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
    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";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7236,6 +7236,8 @@ self: super: with self; {
  kubernetes-asyncio = callPackage ../development/python-modules/kubernetes-asyncio { };
  kubernetes-validate = callPackage ../by-name/ku/kubernetes-validate/unwrapped.nix { };
  kurbopy = callPackage ../development/python-modules/kurbopy { };
  l18n = callPackage ../development/python-modules/l18n { };