Merge pull request #203798 from r-ryantm/auto-update/python3.10-pymediainfo

python310Packages.pymediainfo: 5.1.0 -> 6.0.1
This commit is contained in:
Fabian Affolter 2022-12-02 08:41:23 +01:00 committed by GitHub
commit 6bc2da6e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,24 @@
{ lib, stdenv, fetchPypi, buildPythonPackage
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, libmediainfo
, setuptools-scm
, pytest, glibcLocales }:
, pytest
, glibcLocales
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymediainfo";
version = "5.1.0";
version = "6.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "d996c69d50081a24d6dca9679abf43ffd2be368b065f953c2c9082e5d649c734";
hash = "sha256-luBLrA38tya+1wwxSxIZEhxLk0TGapj0Js4n1/mr/7A=";
};
postPatch = ''
@ -22,18 +31,28 @@ buildPythonPackage rec {
"${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}.0"
'';
nativeBuildInputs = [ setuptools-scm ];
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [ glibcLocales pytest ];
checkInputs = [
glibcLocales
pytest
];
checkPhase = ''
export LC_ALL=en_US.UTF-8
py.test -k 'not test_parse_url' tests
'';
pythonImportsCheck = [
"pymediainfo"
];
meta = with lib; {
description = "Python wrapper for the mediainfo library";
homepage = "https://github.com/sbraz/pymediainfo";
changelog = "https://github.com/sbraz/pymediainfo/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ jfrankenau ];
};