11 buildPythonPackage rec {
16 disabled = pythonOlder "3.6";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-q41JjAWcIiD2nJck5Zzb/lhfIZ3xJGU1I2crsMN0T8Q=";
26 # default to store ffmpeg
27 substituteInPlace ffmpy.py \
28 --replace 'executable="ffmpeg",' 'executable="${ffmpeg-headless}/bin/ffmpeg",'
30 # The tests test a mock that does not behave like ffmpeg. If we default to the nix-store ffmpeg they fail.
31 for fname in tests/*.py; do
32 echo 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])' >>"$fname"
36 pythonImportsCheck = [ "ffmpy" ];
47 # the vendored ffmpeg mock binary assumes FHS
49 rm -v tests/ffmpeg/ffmpeg
50 HOME=$(mktemp -d) go build -o ffmpeg tests/ffmpeg/ffmpeg.go
55 description = "A simple python interface for FFmpeg/FFprobe";
56 homepage = "https://github.com/Ch00k/ffmpy";
57 license = licenses.mit;
58 maintainers = with maintainers; [ pbsds ];