Unverified Commit e577daf8 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #309438 from pyrox0/rst2pdf-build-fix

rst2pdf: Fix postInstall build
parents ba454fe3 c5f0dbd9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, installShellFiles
, setuptools
, setuptools-scm
, wheel
@@ -31,6 +32,7 @@ buildPythonPackage rec {
  outputs = [ "out" "man" ];

  nativeBuildInputs = [
    installShellFiles
    setuptools
    setuptools-scm
    wheel
@@ -62,8 +64,8 @@ buildPythonPackage rec {
  doCheck = false;

  postInstall = ''
    mkdir -p $man/share/man/man1/
    ${docutils}/bin/rst2man.py doc/rst2pdf.rst $man/share/man/man1/rst2pdf.1
    ${lib.getExe' docutils "rst2man"} doc/rst2pdf.rst rst2pdf.1
    installManPage rst2pdf.1
  '';

  meta = with lib; {
@@ -72,6 +74,6 @@ buildPythonPackage rec {
    homepage = "https://rst2pdf.org/";
    changelog = "https://github.com/rst2pdf/rst2pdf/blob/${version}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
    maintainers = with maintainers; [ pyrox0 ];
  };
}