2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, nix-update-script
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, regex
|
2023-11-16 04:20:00 +00:00
|
|
|
, pip
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oelint-parser";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.12.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "oelint_parser";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-fzHEy9/BxstPAYhVTG0o7Gn2D9UKuSZvI0X5ynZ+oEk=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ pip ];
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [ regex ];
|
|
|
|
pythonImportsCheck = [ "oelint_parser" ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# Fail to run inside the code the build.
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|