Unverified Commit 21b3d31a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

reuse: install man page and docs
parents 29f71bdf 5c71c9d6
Loading
Loading
Loading
Loading
+29 −2
Original line number Diff line number Diff line
@@ -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; {