2025-08-01 17:56:34 +00:00

55 lines
1.1 KiB
Nix

{
lib,
nix-update-script,
fetchFromGitHub,
buildPythonPackage,
setuptools,
deprecated,
regex,
pytest-cov-stub,
pytest-forked,
pytest-random-order,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "oelint-parser";
version = "8.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "priv-kweihmann";
repo = "oelint-parser";
tag = version;
hash = "sha256-MFbDK/uahH4ZNRY3f8vW0uMFC2frlYtqVOZHT3NwA30=";
};
pythonRelaxDeps = [ "regex" ];
build-system = [ setuptools ];
dependencies = [
regex
deprecated
];
nativeCheckInputs = [
pytest-cov-stub
pytest-forked
pytest-random-order
pytestCheckHook
];
pythonImportsCheck = [ "oelint_parser" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Alternative parser for bitbake recipes";
homepage = "https://github.com/priv-kweihmann/oelint-parser";
changelog = "https://github.com/priv-kweihmann/oelint-parser/releases/tag/${src.tag}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ otavio ];
};
}