diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-03-30 13:30:47 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-03-31 10:13:20 +0000 |
commit | f2e61678de300336b3666afd19af7565efb0c4cf (patch) | |
tree | 49f6906c9d557f7fdd58257ff85ec17fc4495f31 /nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix | |
parent | f920d5e07c29a9aa1b77d9b88bd604cf1a1f3664 (diff) | |
parent | 00e27c78d3d2de6964096ceee8d70e5b487365e3 (diff) | |
download | nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.gz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.bz2 nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.lz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.xz nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.tar.zst nixlib-f2e61678de300336b3666afd19af7565efb0c4cf.zip |
Merge commit '00e27c78d3d2de6964096ceee8d70e5b487365e3'
Conflicts: nixpkgs/nixos/modules/system/boot/systemd.nix nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/common.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/default.nix nixpkgs/pkgs/applications/version-management/git-and-tools/cgit/pink.nix nixpkgs/pkgs/top-level/all-packages.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix b/nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix new file mode 100644 index 000000000000..4792712f41e9 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/ansible-doctor/default.nix @@ -0,0 +1,69 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib + +# pythonPackages +, anyconfig +, appdirs +, colorama +, environs +, jinja2 +, jsonschema +, nested-lookup +, pathspec +, poetry-core +, python-json-logger +, ruamel-yaml +}: + +buildPythonPackage rec { + pname = "ansible-doctor"; + version = "1.2.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "thegeeklab"; + repo = "ansible-doctor"; + rev = "v${version}"; + sha256 = "sha256-2Jaf7asU4c7kw9v9dUYDL4/M2Y/2qhMM3m0jqYiobUI="; + }; + + postInstall = '' + rm $out/lib/python*/site-packages/LICENSE + ''; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'environs = "9.5.0"' 'environs = "*"' \ + --replace 'jsonschema = "4.4.0"' 'jsonschema = "*"' \ + --replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + jinja2 + colorama + python-json-logger + pathspec + environs + jsonschema + appdirs + ruamel-yaml + anyconfig + nested-lookup + ]; + + # no tests + doCheck = false; + pythonImportsCheck = [ "ansibledoctor" ]; + + meta = with lib; { + description = "Annotation based documentation for your Ansible roles"; + homepage = "https://github.com/thegeeklab/ansible-doctor"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ tboerger ]; + }; +} |