1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 async-timeout, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "ha-ffmpeg"; 12 version = "3.2.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "home-assistant-libs"; 19 repo = "ha-ffmpeg"; 20 tag = version; 21 hash = "sha256-TbSoKoOiLx3O7iykiTri5GBHGj7WoB8iSCpFIrV4ZgU="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ async-timeout ]; 27 28 # only manual tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "haffmpeg.camera" 33 "haffmpeg.sensor" 34 "haffmpeg.tools" 35 ]; 36 37 meta = with lib; { 38 description = "Library for Home Assistant to handle ffmpeg"; 39 homepage = "https://github.com/home-assistant-libs/ha-ffmpeg/"; 40 changelog = "https://github.com/home-assistant-libs/ha-ffmpeg/releases/tag/${version}"; 41 license = licenses.bsd3; 42 teams = [ teams.home-assistant ]; 43 }; 44}