2025-04-04 19:42:12 -05:00

64 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
pname = "ansible-later";
version = "4.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "thegeeklab";
repo = "ansible-later";
tag = "v${version}";
hash = "sha256-4ZHCnLeG5gr0UtKQLU+6xnTxUbxnLcmDd51Psnaa42I=";
};
pythonRelaxDeps = [
"python-json-logger"
"yamllint"
];
build-system = with python3Packages; [
poetry-core
poetry-dynamic-versioning
];
dependencies = with python3Packages; [
pyyaml
ansible-core
ansible
anyconfig
appdirs
colorama
jsonschema
nested-lookup
pathspec
python-json-logger
toolz
unidiff
yamllint
];
nativeCheckInputs = with python3Packages; [
pytest-cov-stub
pytest-mock
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "ansiblelater" ];
meta = {
description = "Best practice scanner for Ansible roles and playbooks";
homepage = "https://github.com/thegeeklab/ansible-later";
changelog = "https://github.com/thegeeklab/ansible-later/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tboerger ];
mainProgram = "ansible-later";
};
}