18 buildPythonPackage rec {
23 disabled = pythonOlder "3.9";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-blvtHSUqSl9xAM4t+dFJWmXiOjtnAUC9nicMaUY1zuU=";
37 nativeBuildInputs = [ pkg-config ];
39 buildInputs = [ ffmpeg-headless ];
43 # Update with `./update-test-samples.bash` if necessary.
44 testSamples = linkFarm "pyav-test-samples" (
45 lib.mapAttrs (_: fetchurl) (lib.importTOML ./test-samples.toml)
49 # ensure we import the built version
51 ln -s ${testSamples} tests/assets
61 # av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'custom_io_output.mpd'
62 "test_writing_to_custom_io_dash"
65 # `__darwinAllowLocalNetworking` doesn’t work for these; not sure why.
66 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
67 "tests/test_timeout.py"
70 pythonImportsCheck = [
97 description = "Pythonic bindings for FFmpeg";
99 homepage = "https://github.com/PyAV-Org/PyAV";
100 changelog = "https://github.com/PyAV-Org/PyAV/blob/v${version}/CHANGELOG.rst";
101 license = licenses.bsd2;