mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 13:29:00 +02:00
Merge pull request #282050 from wfdewith/ansible-core-man
python311Packages.ansible-core: generate missing man pages
This commit is contained in:
commit
6c75e02c82
|
@ -4,6 +4,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pythonRelaxDepsHook
|
, pythonRelaxDepsHook
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, docutils
|
||||||
, ansible
|
, ansible
|
||||||
, cryptography
|
, cryptography
|
||||||
, importlib-resources
|
, importlib-resources
|
||||||
|
@ -41,10 +42,13 @@ buildPythonPackage rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lib/ansible/executor/task_executor.py \
|
substituteInPlace lib/ansible/executor/task_executor.py \
|
||||||
--replace "[python," "["
|
--replace "[python," "["
|
||||||
|
|
||||||
|
patchShebangs --build packaging/cli-doc/build.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
|
docutils
|
||||||
] ++ lib.optionals (pythonOlder "3.10") [
|
] ++ lib.optionals (pythonOlder "3.10") [
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
@ -82,7 +86,9 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage docs/man/man1/*.1
|
export HOME="$(mktemp -d)"
|
||||||
|
packaging/cli-doc/build.py man --output-dir=man
|
||||||
|
installManPage man/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# internal import errors, missing dependencies
|
# internal import errors, missing dependencies
|
||||||
|
|
Loading…
Reference in a new issue