biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / admin / ansible / doctor.nix
blobe6a370c46f9090d743356b8ec5aba696a845d550
1 { lib
2 , fetchFromGitHub
3 , fetchpatch
4 , python3
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "ansible-doctor";
9   version = "2.0.4";
10   format = "pyproject";
12   src = fetchFromGitHub {
13     owner = "thegeeklab";
14     repo = "ansible-doctor";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-nZv1PdR0kGrke2AjcDWjDWBdsw64UpHYFNDFAe/UoJo=";
17   };
19   patches = [
20     # https://github.com/thegeeklab/ansible-doctor/pull/541
21     (fetchpatch {
22       name = "poetry-dynamic-versioning-pep517.patch";
23       url = "https://github.com/thegeeklab/ansible-doctor/commit/b77ba9dccaef4b386bd54b128136c948665eb61a.patch";
24       hash = "sha256-XfdTkRk9B857V5DQnxlbwxTb098YwHzKGzNQBTQzWCM=";
25     })
26   ];
28   pythonRelaxDeps = true;
30   nativeBuildInputs = with python3.pkgs; [
31     poetry-core
32     poetry-dynamic-versioning
33   ];
35   propagatedBuildInputs = with python3.pkgs; [
36     anyconfig
37     appdirs
38     colorama
39     environs
40     jinja2
41     jsonschema
42     nested-lookup
43     pathspec
44     python-json-logger
45     ruamel-yaml
46   ];
48   postInstall = ''
49     rm $out/lib/python*/site-packages/LICENSE
50   '';
52   # Module has no tests
53   doCheck = false;
55   pythonImportsCheck = [
56     "ansibledoctor"
57   ];
59   meta = with lib; {
60     description = "Annotation based documentation for your Ansible roles";
61     mainProgram = "ansible-doctor";
62     homepage = "https://github.com/thegeeklab/ansible-doctor";
63     changelog = "https://github.com/thegeeklab/ansible-doctor/releases/tag/v${version}";
64     license = licenses.lgpl3Only;
65     maintainers = with maintainers; [ tboerger ];
66   };