From ddfd20ff710493ea8b678fada53463ef31d799f9 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 21 Dec 2024 12:44:34 +0800 Subject: [PATCH] python312Packages.python-youtube: 0.9.6 -> 0.9.7 (cherry picked from commit c35d8bd40a5f4804142365691d3e536865558bb6) --- .../python-modules/python-youtube/default.nix | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/python-youtube/default.nix b/pkgs/development/python-modules/python-youtube/default.nix index 660a97ec891d5..0496cc57a68da 100644 --- a/pkgs/development/python-modules/python-youtube/default.nix +++ b/pkgs/development/python-modules/python-youtube/default.nix @@ -7,30 +7,30 @@ isodate, requests, requests-oauthlib, + pytest-cov-stub, pytestCheckHook, responses, }: + buildPythonPackage rec { pname = "python-youtube"; - version = "0.9.6"; - format = "pyproject"; + version = "0.9.7"; + pyproject = true; src = fetchFromGitHub { owner = "sns-sdks"; repo = "python-youtube"; - rev = "refs/tags/v${version}"; - hash = "sha256-IuVnXVe54D0g+7S+AuTGtBlwcmxHpkk1e9Vt8laEV2c="; + tag = "v${version}"; + hash = "sha256-dK0le/7/hpavrHbk4DaXoIxPHUUJuWuxHIWMZKC4eSM="; }; - postPatch = '' - substituteInPlace pytest.ini \ - --replace "--cov=pyyoutube" "" \ - --replace "--cov-report xml" "" - ''; + pythonRelaxDeps = [ + "requests-oauthlib" + ]; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ dataclasses-json isodate requests @@ -42,13 +42,14 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook responses + pytest-cov-stub ]; - meta = with lib; { + meta = { description = "Simple Python wrapper around for YouTube Data API"; homepage = "https://github.com/sns-sdks/python-youtube"; - changelog = "https://github.com/sns-sdks/python-youtube/blob/${src.rev}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ blaggacao ]; + changelog = "https://github.com/sns-sdks/python-youtube/blob/${src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ blaggacao ]; }; }