python311Packages.youtubeaio: init at 1.1.5

This commit is contained in:
Robert Schütz 2024-02-06 17:56:10 -08:00
parent f8e2ebd66d
commit 587353aff2
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, aiohttp
, pydantic
, yarl
, aresponses
, pytest-asyncio
, pytestCheckHook
, syrupy
}:
buildPythonPackage rec {
pname = "youtubeaio";
version = "1.1.5";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "joostlek";
repo = "python-youtube";
rev = "refs/tags/v${version}";
hash = "sha256-utkf5t6yrf0f9QBIaDH6MxKduNZOsjfEWfQnuVyUoRM=";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pydantic
yarl
];
pythonImportsCheck = [ "youtubeaio" ];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/joostlek/python-youtube/releases/tag/v${version}";
description = "Asynchronous Python client for the YouTube V3 API";
homepage = "https://github.com/joostlek/python-youtube";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -16507,6 +16507,8 @@ self: super: with self; {
ffmpegSupport = false;
};
youtubeaio = callPackage ../development/python-modules/youtubeaio { };
yoyo-migrations = callPackage ../development/python-modules/yoyo-migrations { };
yt-dlp = callPackage ../tools/misc/yt-dlp {