2022-04-25 10:51:26 +02:00
|
|
|
{ lib
|
2022-05-02 10:05:16 +02:00
|
|
|
, fetchFromGitHub
|
2023-08-19 07:59:15 +02:00
|
|
|
, fetchpatch
|
2023-05-16 01:09:45 +02:00
|
|
|
, python3
|
2022-03-27 20:23:59 +02:00
|
|
|
}:
|
|
|
|
|
2023-05-16 01:09:45 +02:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-03-27 20:23:59 +02:00
|
|
|
pname = "ansible-doctor";
|
2023-04-08 07:19:02 +02:00
|
|
|
version = "2.0.4";
|
2022-03-27 20:23:59 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thegeeklab";
|
|
|
|
repo = "ansible-doctor";
|
2022-07-16 12:58:56 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-08 07:19:02 +02:00
|
|
|
hash = "sha256-nZv1PdR0kGrke2AjcDWjDWBdsw64UpHYFNDFAe/UoJo=";
|
2022-03-27 20:23:59 +02:00
|
|
|
};
|
|
|
|
|
2023-08-19 07:59:15 +02: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-08 14:48:00 +01:00
|
|
|
|
2023-08-19 07:59:15 +02:00
|
|
|
pythonRelaxDeps = true;
|
2022-11-08 14:48:00 +01:00
|
|
|
|
2023-05-16 01:09:45 +02:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2022-05-02 10:05:16 +02:00
|
|
|
poetry-core
|
2023-08-19 07:59:15 +02:00
|
|
|
poetry-dynamic-versioning
|
2022-11-08 14:48:00 +01:00
|
|
|
pythonRelaxDepsHook
|
2022-05-02 10:05:16 +02:00
|
|
|
];
|
|
|
|
|
2023-05-16 01:09:45 +02:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-05-02 10:05:16 +02:00
|
|
|
anyconfig
|
|
|
|
appdirs
|
|
|
|
colorama
|
|
|
|
environs
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
nested-lookup
|
|
|
|
pathspec
|
|
|
|
python-json-logger
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
2022-03-27 20:23:59 +02:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/lib/python*/site-packages/LICENSE
|
|
|
|
'';
|
|
|
|
|
2022-05-02 10:05:16 +02:00
|
|
|
# Module has no tests
|
2022-03-27 20:23:59 +02:00
|
|
|
doCheck = false;
|
2022-04-25 10:51:26 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ansibledoctor"
|
|
|
|
];
|
2022-03-27 20:23:59 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Annotation based documentation for your Ansible roles";
|
|
|
|
homepage = "https://github.com/thegeeklab/ansible-doctor";
|
2022-11-26 12:57:42 +01:00
|
|
|
changelog = "https://github.com/thegeeklab/ansible-doctor/releases/tag/v${version}";
|
2022-03-27 20:23:59 +02:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ tboerger ];
|
|
|
|
};
|
|
|
|
}
|