1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 dataclasses-json, 7 isodate, 8 requests, 9 requests-oauthlib, 10 pytest-cov-stub, 11 pytestCheckHook, 12 responses, 13}: 14 15buildPythonPackage rec { 16 pname = "python-youtube"; 17 version = "0.9.8"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "sns-sdks"; 22 repo = "python-youtube"; 23 tag = "v${version}"; 24 hash = "sha256-8Ozfga6gPLzPG770hluAgxIYI2TEX5uAe6BeMzIp+z4="; 25 }; 26 27 pythonRelaxDeps = [ 28 "requests-oauthlib" 29 ]; 30 31 build-system = [ poetry-core ]; 32 33 dependencies = [ 34 dataclasses-json 35 isodate 36 requests 37 requests-oauthlib 38 ]; 39 40 pythonImportsCheck = [ "pyyoutube" ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 responses 45 pytest-cov-stub 46 ]; 47 48 meta = { 49 description = "Simple Python wrapper around for YouTube Data API"; 50 homepage = "https://github.com/sns-sdks/python-youtube"; 51 changelog = "https://github.com/sns-sdks/python-youtube/blob/${src.tag}/CHANGELOG.md"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ ]; 54 }; 55}