New comment by dataCobra on void-packages repository https://github.com/void-linux/void-packages/pull/38583#issuecomment-1211681698 Comment: I've tried to add this in, but Sphinx can't find the khal module when it tries to import. ```diff diff --git a/srcpkgs/khal/template b/srcpkgs/khal/template index 2f6331ed31..f06be57363 100644 --- a/srcpkgs/khal/template +++ b/srcpkgs/khal/template @@ -3,10 +3,13 @@ pkgname=khal version=0.10.5 revision=1 build_style=python3-module -hostmakedepends="python3-setuptools python3-click python3-click-log python3-configobj - python3-dateutil python3-icalendar python3-pytz python3-tzlocal - python3-urwid python3-xdg python3-atomicwrites" -depends="$hostmakedepends" +hostmakedepends="python3-setuptools python3-Sphinx python3-sphinxcontrib + python3-click python3-click-log python3-configobj python3-dateutil + python3-icalendar python3-pytz python3-tzlocal python3-urwid python3-xdg + python3-atomicwrites" +depends="python3-click python3-click-log python3-configobj python3-dateutil + python3-icalendar python3-pytz python3-tzlocal python3-urwid python3-xdg + python3-atomicwrites" checkdepends="python3-pytest python3-freezegun vdirsyncer $depends" short_desc="Command-line calendar build around CalDAV" maintainer="Anachron " @@ -30,4 +33,6 @@ post_install() { vcompletion "khal.${sh}" $sh done vsconf khal.conf.sample + cd doc/ + make man } ``` The following error message is stopping the process: ```python sphinx-build -b man -d build/doctrees source build/man Running Sphinx v5.0.2 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 343, in eval_config_file exec(code, namespace) File "/builddir/khal-0.10.5/doc/source/conf.py", line 17, in import khal ModuleNotFoundError: No module named 'khal' make: *** [Makefile:131: man] Error 2 => ERROR: khal-0.10.5_1: post_install: 'make man' exited with 2 => ERROR: in post_install() at srcpkgs/khal/template:37 ```