Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / youtubeaio / default.nix
blob94056aca5bd392ae654b2a04b0826d08fc1a4681
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , aiohttp
7 , pydantic
8 , yarl
9 , aresponses
10 , pytest-asyncio
11 , pytestCheckHook
12 , syrupy
15 buildPythonPackage rec {
16   pname = "youtubeaio";
17   version = "1.1.5";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "joostlek";
24     repo = "python-youtube";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-utkf5t6yrf0f9QBIaDH6MxKduNZOsjfEWfQnuVyUoRM=";
27   };
29   postPatch = ''
30     sed -i "/^addopts/d" pyproject.toml
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     aiohttp
39     pydantic
40     yarl
41   ];
43   pythonImportsCheck = [ "youtubeaio" ];
45   nativeCheckInputs = [
46     aresponses
47     pytest-asyncio
48     pytestCheckHook
49     syrupy
50   ];
52   meta = {
53     changelog = "https://github.com/joostlek/python-youtube/releases/tag/v${version}";
54     description = "Asynchronous Python client for the YouTube V3 API";
55     homepage = "https://github.com/joostlek/python-youtube";
56     license = lib.licenses.mit;
57     maintainers = with lib.maintainers; [ dotlambda ];
58   };