2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchpatch
|
2023-05-24 13:37:59 +00:00
|
|
|
, python3
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "ansible-doctor";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "2.0.4";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thegeeklab";
|
|
|
|
repo = "ansible-doctor";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-nZv1PdR0kGrke2AjcDWjDWBdsw64UpHYFNDFAe/UoJo=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/thegeeklab/ansible-doctor/pull/541
|
|
|
|
(fetchpatch {
|
|
|
|
name = "poetry-dynamic-versioning-pep517.patch";
|
|
|
|
url = "https://github.com/thegeeklab/ansible-doctor/commit/b77ba9dccaef4b386bd54b128136c948665eb61a.patch";
|
|
|
|
hash = "sha256-XfdTkRk9B857V5DQnxlbwxTb098YwHzKGzNQBTQzWCM=";
|
|
|
|
})
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
pythonRelaxDeps = true;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2022-04-27 09:35:20 +00:00
|
|
|
poetry-core
|
2023-08-22 20:05:09 +00:00
|
|
|
poetry-dynamic-versioning
|
2022-11-21 17:40:18 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-04-27 09:35:20 +00:00
|
|
|
anyconfig
|
|
|
|
appdirs
|
|
|
|
colorama
|
|
|
|
environs
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
nested-lookup
|
|
|
|
pathspec
|
|
|
|
python-json-logger
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/lib/python*/site-packages/LICENSE
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ansibledoctor"
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Annotation based documentation for your Ansible roles";
|
|
|
|
homepage = "https://github.com/thegeeklab/ansible-doctor";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/thegeeklab/ansible-doctor/releases/tag/v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ tboerger ];
|
|
|
|
};
|
|
|
|
}
|