* Re: libmediainfo
2020-01-19 22:07 libmediainfo sschott
@ 2020-01-20 7:35 ` Efraim Flashner
2020-01-21 21:08 ` libmediainfo sschott
0 siblings, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2020-01-20 7:35 UTC (permalink / raw)
To: sschott; +Cc: guix-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 2498 bytes --]
On Sun, Jan 19, 2020 at 11:07:02PM +0100, sschott@mailbox.org wrote:
> Hi all,
> I am trying to package pymediainfo, but the build fails in the test phase
> with
> "OSError: libmediainfo.so.0: 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
> __init__.py does not help.
> (define-public python-pymediainfo
> (package
> (name "python-pymediainfo")
> (version "4.1")
> (source
> (origin
> (method url-fetch)
> (uri (pypi-uri "pymediainfo" version))
> (sha256
> (base32
> "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
> (build-system python-build-system)
> (native-inputs
> `(("python-setuptools-scm" ,python-setuptools-scm)
> ("python-pytest" ,python-pytest)
> ("python-pytest-runner" ,python-pytest-runner)))
> (inputs
> `(("libmediainfo" ,libmediainfo)))
> (propagated-inputs
> `(("python-setuptools" ,python-setuptools)))
> ; (arguments
> ;; FIXME: OSError: libmediainfo.so.0: cannot open shared object file:
> No such file or directory
> ; '(#:tests? #f))
> (arguments
> `(#:phases (modify-phases %standard-phases
> (add-after 'unpack 'patch-libmediainfo
> (lambda _
> (substitute* "pymediainfo/__init__.py"
> (("libmediainfo.so.0") (string-append (assoc-ref
> %build-inputs "libmediainfo") "/lib/libmedia.so.0"))))))))
typo above, it should be /lib/libmediainfo.so.o
With that change I got 1 test error, related to it trying to download an
mp4 file from the internet.
> (home-page
> "https://github.com/sbraz/pymediainfo")
> (synopsis
> "Python wrapper for the mediainfo library")
> (description
> "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,
> Sebastian
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread