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

rst2pdf: Fix postInstall build

authored by Pol Dellaiera and committed by GitHub e577daf8 ba454fe3

+5 -3
+5 -3
pkgs/development/python-modules/rst2pdf/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , installShellFiles 4 5 , setuptools 5 6 , setuptools-scm 6 7 , wheel ··· 31 32 outputs = [ "out" "man" ]; 32 33 33 34 nativeBuildInputs = [ 35 + installShellFiles 34 36 setuptools 35 37 setuptools-scm 36 38 wheel ··· 62 64 doCheck = false; 63 65 64 66 postInstall = '' 65 - mkdir -p $man/share/man/man1/ 66 - ${docutils}/bin/rst2man.py doc/rst2pdf.rst $man/share/man/man1/rst2pdf.1 67 + ${lib.getExe' docutils "rst2man"} doc/rst2pdf.rst rst2pdf.1 68 + installManPage rst2pdf.1 67 69 ''; 68 70 69 71 meta = with lib; { ··· 72 74 homepage = "https://rst2pdf.org/"; 73 75 changelog = "https://github.com/rst2pdf/rst2pdf/blob/${version}/CHANGES.rst"; 74 76 license = licenses.mit; 75 - maintainers = with maintainers; [ ]; 77 + maintainers = with maintainers; [ pyrox0 ]; 76 78 }; 77 79 }