Merge pull request #330186 from Luflosi/reuse-install-man-page-and-docs

reuse: install man page and docs
This commit is contained in:
Aleksana 2024-08-04 16:56:32 +08:00 committed by GitHub
commit 21b3d31a99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,11 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
sphinxHook,
furo,
myst-parser,
pbr,
sphinxcontrib-apidoc,
# dependencies
attrs,
@ -30,7 +35,20 @@ buildPythonPackage rec {
hash = "sha256-oKtQBT8tuAk4S/Sygp4qxLk4ADWDTG0MbVaL5O2qsuA=";
};
build-system = [ poetry-core ];
outputs = [
"out"
"doc"
"man"
];
build-system = [
poetry-core
sphinxHook
furo
myst-parser
pbr
sphinxcontrib-apidoc
];
dependencies = [
attrs
@ -42,13 +60,22 @@ buildPythonPackage rec {
tomlkit
];
nativeCheckInputs = [ pytestCheckHook freezegun ];
nativeCheckInputs = [
pytestCheckHook
freezegun
];
disabledTestPaths = [
# pytest wants to execute the actual source files for some reason, which fails with ImportPathMismatchError()
"src/reuse"
];
sphinxBuilders = [
"html"
"man"
];
sphinxRoot = "docs";
pythonImportsCheck = [ "reuse" ];
meta = with lib; {