mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python311Packages.youtubeaio: init at 1.1.5
This commit is contained in:
parent
f8e2ebd66d
commit
587353aff2
59
pkgs/development/python-modules/youtubeaio/default.nix
Normal file
59
pkgs/development/python-modules/youtubeaio/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user