nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 983 B view raw
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 src = fetchFromGitHub { 16 owner = "home-assistant-libs"; 17 repo = "ha-ffmpeg"; 18 tag = version; 19 hash = "sha256-TbSoKoOiLx3O7iykiTri5GBHGj7WoB8iSCpFIrV4ZgU="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 pythonRemoveDeps = [ 25 "async_timeout" 26 ]; 27 28 dependencies = lib.optionals (pythonOlder "3.11") [ 29 async-timeout 30 ]; 31 32 # only manual tests 33 doCheck = false; 34 35 pythonImportsCheck = [ 36 "haffmpeg.camera" 37 "haffmpeg.sensor" 38 "haffmpeg.tools" 39 ]; 40 41 meta = { 42 description = "Library for Home Assistant to handle ffmpeg"; 43 homepage = "https://github.com/home-assistant-libs/ha-ffmpeg/"; 44 changelog = "https://github.com/home-assistant-libs/ha-ffmpeg/releases/tag/${version}"; 45 license = lib.licenses.bsd3; 46 teams = [ lib.teams.home-assistant ]; 47 }; 48}