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

rst2pdf: Fix postInstall build
This commit is contained in:
Pol Dellaiera 2024-05-06 18:22:34 +02:00 committed by GitHub
commit e577daf8ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
{ 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 ];
};
}