Unverified Commit 1b27a51b authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

Merge pull request #256990 from otavio/init-oelint-adv

oelint-adv: init at 3.25.0, pythonPackages.oelint-parser: init at 2.11.3
parents c3cfbaee b96541c7
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ lib
, nix-update-script
, python3
, fetchPypi
}:

python3.pkgs.buildPythonApplication rec {
  pname = "oelint-adv";
  version = "3.25.0";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "oelint_adv";
    hash = "sha256-dhTS2DZ7Usb1jgBv9Wm86w8CCMt64aHyBrxucLZUQjs=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    anytree
    colorama
    oelint-parser
    urllib3
  ];

  pythonRelaxDeps = [ "urllib3" ];
  pythonImportsCheck = [ "oelint_adv" ];

  # Fail to run inside the code the build.
  doCheck = false;

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Advanced bitbake-recipe linter";
    homepage = "https://github.com/priv-kweihmann/oelint-adv";
    changelog = "https://github.com/priv-kweihmann/oelint-adv/releases/tag/v${version}";
    license = licenses.bsd2;
    maintainers = with maintainers; [ otavio ];
  };
}
+31 −0
Original line number Diff line number Diff line
{ lib
, nix-update-script
, fetchPypi
, buildPythonPackage
, regex
}:

buildPythonPackage rec {
  pname = "oelint-parser";
  version = "2.11.3";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "oelint_parser";
    hash = "sha256-iR/MDHt3SEG29hSLqA36EXe8EBRZVntt+u6bwoujy0s=";
  };

  propagatedBuildInputs = [ regex ];
  pythonImportsCheck = [ "oelint_parser" ];

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Alternative parser for bitbake recipes";
    homepage = "https://github.com/priv-kweihmann/oelint-parser";
    changelog = "https://github.com/priv-kweihmann/oelint-parser/releases/tag/v${version}";
    license = licenses.bsd2;
    maintainers = with maintainers; [ otavio ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4082,6 +4082,8 @@ self: super: with self; {
    inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL;
  };
  oelint-parser = callPackage ../development/python-modules/oelint-parser { };
  openllm = callPackage ../development/python-modules/openllm { };
  openllm-client = callPackage ../development/python-modules/openllm-client { };