[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: sschott
Subject: libmediainfo
Date: Sun, 19 Jan 2020 23:07:02 +0100 (CET)

Hi all,

I am trying to package pymediainfo, but the build fails in the test phase with

"OSError: cannot open shared object file: No such file or directory"

When I skip the test phase, the build succeeds, but using pymediainfo in a python script gives the same error. Injecting the library path into the does not help.

(define-public python-pymediainfo
    (name "python-pymediainfo")
    (version "4.1")
        (method url-fetch)
        (uri (pypi-uri "pymediainfo" version))
    (build-system python-build-system)
      `(("python-setuptools-scm" ,python-setuptools-scm)
         ("python-pytest" ,python-pytest)
         ("python-pytest-runner" ,python-pytest-runner)))
      `(("libmediainfo" ,libmediainfo)))
      `(("python-setuptools" ,python-setuptools)))
;    (arguments
     ;; FIXME: OSError: cannot open shared object file: No such file or directory
;     '(#:tests? #f))
     `(#:phases (modify-phases %standard-phases
         (add-after 'unpack 'patch-libmediainfo
           (lambda _
             (substitute* "pymediainfo/"
               (("") (string-append (assoc-ref %build-inputs "libmediainfo") "/lib/"))))))))
      "Python wrapper for the mediainfo library")
      "Python wrapper for the mediainfo library to access the most relevant technical and tag data for video and audio files.")
    (license license:expat)))

Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]