python.pkgs.pymediainfo: fix test

This commit is contained in:
Johannes Frankenau 2018-10-15 13:44:16 +02:00
parent fe91334fbf
commit 6a4967d61f

@ -22,6 +22,11 @@ buildPythonPackage rec {
'CDLL("${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}")' \
--replace 'CDLL("libmediainfo.so.0")' \
'CDLL("${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}.0")'
# Fix test, remove after version 2.3.0
substituteInPlace tests/test_pymediainfo.py \
--replace 'codec, "AVC"' 'format, "AVC"' \
--replace 'codec, "AAC LC"' 'format, "AAC"'
'';
nativeBuildInputs = [ setuptools_scm ];