10 buildPythonPackage rec {
13 format = "setuptools";
15 disabled = pythonOlder "3.6";
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-kuLhmCG80BmXdqpW67UanBnuYiL2Oh1jKt7IgmVNEAM=";
25 # default to store ffmpeg
26 substituteInPlace ffmpy.py \
27 --replace 'executable="ffmpeg",' 'executable="${ffmpeg-headless}/bin/ffmpeg",'
29 # The tests test a mock that does not behave like ffmpeg. If we default to the nix-store ffmpeg they fail.
30 for fname in tests/*.py; do
31 echo 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])' >>"$fname"
35 pythonImportsCheck = [ "ffmpy" ];
42 # the vendored ffmpeg mock binary assumes FHS
44 rm -v tests/ffmpeg/ffmpeg
45 HOME=$(mktemp -d) go build -o ffmpeg tests/ffmpeg/ffmpeg.go
50 description = "A simple python interface for FFmpeg/FFprobe";
51 homepage = "https://github.com/Ch00k/ffmpy";
52 license = licenses.mit;
53 maintainers = with maintainers; [ pbsds ];