~ruther/guix-local

15438a3c871ffb11ddae7088c974c468b14dcc6b — Nicolas Graves 6 months ago 5d65dde
gnu: picard: Switch to pyproject.

* gnu/packages/music.scm (picard):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:use-setuptools>: Drop it
<#:configure-flags, #:phases>: Refresh them.
[native-inputs]: Add python-setuptools.

Change-Id: Icdf6fe452cdabac07ab6a55aba6b27120cccccf0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 6 insertions(+), 8 deletions(-)

M gnu/packages/music.scm
M gnu/packages/music.scm => gnu/packages/music.scm +6 -8
@@ 4132,14 4132,13 @@ event-based scripts for scrobbling, notifications, etc.")
              (sha256
               (base32
                "1k0zwbi9i6b60l69ccmrapls19i21h1q6h547b3l3az7napb7zb3"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     (list
      #:use-setuptools? #f
      #:configure-flags
      #~(list "--root=/"
              ;; Don't phone home or show ‘Check for Update…’ in the Help menu.
              "--disable-autoupdate")
      #~'(("--root" . "/")
          ;; Don't phone home or show ‘Check for Update…’ in the Help menu.
          ("--disable-autoupdate" . ""))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-source


@@ 4147,14 4146,13 @@ event-based scripts for scrobbling, notifications, etc.")
              (substitute* "picard/const/__init__.py"
                (("pyfpcalc")
                 (string-append
                  "pyfpcalc', '"
                  (assoc-ref inputs "chromaprint") "/bin/fpcalc")))))
                  "pyfpcalc', '" (search-input-file inputs "/bin/fpcalc"))))))
          ;; pipe tests require writable $HOME.
          (add-before 'check 'set-HOME
            (lambda _
              (setenv "HOME" "/tmp"))))))
    (native-inputs
     (list gettext-minimal python-dateutil))
     (list gettext-minimal python-dateutil python-setuptools))
    (inputs
     (list chromaprint
           python-charset-normalizer