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