nixpkgs/pkgs/development/python-modules/ffmpeg-python/default.nix
Aluísio Augusto Silva Gonçalves 748e20cc7c
python3Packages.ffmpeg-python: replace ffmpeg_3 with ffmpeg
See https://github.com/NixOS/nixpkgs/issues/120705 for the rationale.
ffmpeg-python doesn't seem to be strongly bound to any ffmpeg version
so we can just migrate away.
2021-04-26 16:51:33 -03:00

41 lines
852 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, pytestCheckHook
, ffmpeg
, future
, 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;
inherit ffmpeg;
})
];
buildInputs = [ pytestrunner ];
propagatedBuildInputs = [ future ];
checkInputs = [ pytestCheckHook 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 ];
};
}