Files
nixpkgs/pkgs/development/python-modules/ha-ffmpeg/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
983 B
Nix

{
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 ];
};
}