python3Packages.ffmpy: 0.5.0 -> 0.6.0

Diff: https://github.com/Ch00k/ffmpy/compare/refs/tags/0.5.0...refs/tags/0.6.0
This commit is contained in:
Peder Bergebakken Sundt 2025-06-04 04:47:42 +02:00
parent f67b454f0b
commit 4cd620aa48

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