Ludovic Courtès writes: > Christopher Baines skribis: > >> --- >> gnu/packages/patchutils.scm | 103 ++++++++++++++++++++++++++++++++++++ >> 1 file changed, 103 insertions(+) > > [...] > >> + (add-after 'install 'install-patchwork-admin >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (let* ((out (assoc-ref outputs "out"))) >> + (mkdir-p (string-append out "/bin")) >> + (call-with-output-file (string-append out "/bin/patchwork-admin") >> + (lambda (port) >> + (display "#!/usr/bin/env python3 >> +import os, sys >> + >> +if __name__ == \"__main__\": >> + os.environ.setdefault( >> + \"DJANGO_SETTINGS_MODULE\", >> + \"guix.patchwork.settings\" >> + ) >> + >> + from django.core.management import execute_from_command_line >> + >> + execute_from_command_line(sys.argv)" port))) >> + (chmod (string-append out "/bin/patchwork-admin") #o555)) >> + #t))))) > > IMO these phases would be less intimidating with a few comments > explaining what’s going on. :-) > >> + (synopsis "") >> + (description "") >> + (home-page "") >> + (license ""))) > > As swedebugia noted, you’re missing a few things here and in the commit > log. :-) > > With these things fixed it should be good! Thanks for taking a look. I've finally got around to taking another look at these patches, and sent updated patches for the package, service and system test. I think it's a lot further forward, but there are still a few bits to sort out. I'll send some comments in reply to the patches.