Diff: https://github.com/joostlek/python-youtube/compare/refs/tags/v1.1.5...refs/tags/v2.0.0 Changelog: https://github.com/joostlek/python-youtube/releases/tag/v2.0.0
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
aiohttp,
|
|
pydantic,
|
|
yarl,
|
|
aresponses,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "youtubeaio";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joostlek";
|
|
repo = "python-youtube";
|
|
tag = "v${version}";
|
|
hash = "sha256-lpmqQXizfFJXgGcKWhFqS4XMML12CFlB40k2ixdszCM=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
pydantic
|
|
yarl
|
|
];
|
|
|
|
pythonImportsCheck = [ "youtubeaio" ];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/joostlek/python-youtube/releases/tag/${src.tag}";
|
|
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 ];
|
|
};
|
|
}
|