1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, dataclasses-json 6, isodate 7, requests 8, requests-oauthlib 9, pytestCheckHook 10, responses 11}: 12buildPythonPackage rec { 13 pname = "python-youtube"; 14 version = "0.9.2"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "sns-sdks"; 19 repo = "python-youtube"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-jUs6n8j1coA37V0RTYqr7pqt+LRABieX7gbyWsXQpUM="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pytest.ini \ 26 --replace "--cov=pyyoutube" "" \ 27 --replace "--cov-report xml" "" 28 ''; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 dataclasses-json 36 isodate 37 requests 38 requests-oauthlib 39 ]; 40 41 pythonImportsCheck = [ "pyyoutube" ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 responses 46 ]; 47 48 meta = with lib; { 49 description = "A 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.rev}/CHANGELOG.md"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ blaggacao ]; 54 }; 55} 56