2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-10-23 06:41:50 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
async-timeout,
|
|
|
|
setuptools,
|
2023-02-22 10:55:15 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ha-ffmpeg";
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "3.2.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
|
|
|
repo = "ha-ffmpeg";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Yu23kRChPbq/9sKvu9uY4qtKXX7CVNagZX9Z6ZzDqcw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
dependencies = [ async-timeout ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# only manual tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"haffmpeg.camera"
|
|
|
|
"haffmpeg.sensor"
|
|
|
|
"haffmpeg.tools"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-22 10:55:15 +00:00
|
|
|
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}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = teams.home-assistant.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|