2024-09-29 20:36:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
nix-update-script,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2023-09-24 00:25:20 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-09-24 00:25:20 +00:00
|
|
|
pname = "oelint-adv";
|
2024-09-29 20:36:13 +00:00
|
|
|
version = "6.1.0";
|
|
|
|
pyproject = true;
|
2023-09-24 00:25:20 +00:00
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "priv-kweihmann";
|
|
|
|
repo = "oelint-adv";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-bDttjeHcIK90W7zPrKNAS4B1L9mibaRjQdnUAU2N8as=";
|
2023-09-24 00:25:20 +00:00
|
|
|
};
|
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
build-system = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
2023-09-24 00:25:20 +00:00
|
|
|
anytree
|
2024-04-11 12:56:29 +00:00
|
|
|
argcomplete
|
2023-09-24 00:25:20 +00:00
|
|
|
colorama
|
|
|
|
oelint-parser
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
pytest-cov-stub
|
|
|
|
pytest-forked
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-09-24 00:25:20 +00:00
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires network access
|
|
|
|
"TestClassOelintVarsHomepagePing"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "argcomplete" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oelint_adv" ];
|
2023-09-24 00:25:20 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-09-29 20:36:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace-fail "--random-order-bucket=global" "" \
|
|
|
|
--replace-fail "--random-order" "" \
|
|
|
|
--replace-fail "--force-sugar" "" \
|
|
|
|
--replace-fail "--old-summary" ""
|
|
|
|
'';
|
|
|
|
|
2023-09-24 00:25:20 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Advanced bitbake-recipe linter";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "oelint-adv";
|
2023-09-24 00:25:20 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|