Files
nixpkgs/pkgs/development/python-modules/youtubeaio/default.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 ];
};
}