mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
01d4e2fe33
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that used `ffmpeg` without requiring a specific version now use ffmpeg_3 explicitly so they shouldn't change.
44 lines
888 B
Nix
44 lines
888 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, substituteAll
|
|
, ffmpeg_3
|
|
, future
|
|
, pytest
|
|
, pytestrunner
|
|
, pytest-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ffmpeg-python";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kkroening";
|
|
repo = "ffmpeg-python";
|
|
rev = version;
|
|
sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
|
|
};
|
|
|
|
patches = [
|
|
(
|
|
substituteAll {
|
|
src = ./ffmpeg-location.patch;
|
|
ffmpeg = ffmpeg_3;
|
|
}
|
|
)
|
|
];
|
|
|
|
buildInputs = [ pytestrunner ];
|
|
propagatedBuildInputs = [ future ];
|
|
checkInputs = [ pytest pytest-mock ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for FFmpeg - with complex filtering support";
|
|
homepage = "https://github.com/kkroening/ffmpeg-python";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.AluisioASG ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|