~ruther/guix-local

f4288ed1650160e8a5addeab9bdb6b8378246420 — Andrew Wong 2 months ago 83d5d28
gnu: python-pyacoustid: Update to 1.3.0.

* gnu/packages/mp3.scm (python-pyacoustid): Update to 1.3.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Switch to gexps and search-input-file.
<#:tests?>: Disable tests.
[native-inputs]: Add python-setuptools.

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

M gnu/packages/mp3.scm
M gnu/packages/mp3.scm => gnu/packages/mp3.scm +18 -16
@@ 727,29 727,31 @@ FFmpeg, etc.")
(define-public python-pyacoustid
  (package
    (name "python-pyacoustid")
    (version "1.2.2")
    (version "1.3.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pyacoustid" version))
       (sha256
        (base32
         "0ha15m41r8ckmanc4k9nrlb9hprvhdjxndzw40a1yj3z1b1xjyf2"))))
    (build-system python-build-system)
         "0xyikq3lqmqlm6b8nmmi6aijs4vz56svgcbhha8bp7n1j5qlhksz"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'chromaprint-path
           (lambda* (#:key inputs #:allow-other-keys)
             (substitute* "chromaprint.py"
               (("libchromaprint.so.1")
                (string-append (assoc-ref inputs "chromaprint")
                               "/lib/libchromaprint.so.1")))
             (substitute* "acoustid.py"
               (("'fpcalc'")
                (string-append "'" (assoc-ref inputs "chromaprint")
                               "/bin/fpcalc'")))
             #t)))))
     (list
      #:tests? #f                      ;No tests.
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'chromaprint-path
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "chromaprint.py"
                (("libchromaprint.so.1")
                 (search-input-file inputs "/lib/libchromaprint.so.1")))
              (substitute* "acoustid.py"
                (("(FPCALC_COMMAND.+)fpcalc" _ prefix)
                 (string-append
                  prefix (search-input-file inputs "/bin/fpcalc")))))))))
    (native-inputs
     (list python-setuptools))
    (inputs (list chromaprint))
    (propagated-inputs
     (list python-audioread python-requests))