python3Packages.ffmpy: 0.5.0 -> 0.6.0 (#413774)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-08 16:33:13 +02:00 committed by GitHub
commit 4270be4bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
uv-build,
pytestCheckHook,
go,
ffmpeg-headless,
@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "ffmpy";
version = "0.5.0";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.8.1";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Ch00k";
repo = "ffmpy";
tag = version;
hash = "sha256-spbyz1EyMJRXJTm7TqN9XoqR9ztBKsNZx3NURwV7N2w=";
hash = "sha256-U20mBg+428kkka6NY9qc7X8jH8A5bKa++g2+PTn/MYg=";
};
postPatch = ''
@ -33,13 +33,13 @@ buildPythonPackage rec {
# The tests test a mock that does not behave like ffmpeg. If we default to the nix-store ffmpeg they fail.
for fname in tests/*.py; do
echo 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])' >>"$fname"
echo >>"$fname" 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])'
done
'';
pythonImportsCheck = [ "ffmpy" ];
nativeBuildInputs = [ poetry-core ];
nativeBuildInputs = [ uv-build ];
nativeCheckInputs = [
pytestCheckHook