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