1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 setuptools-scm, 7}: 8 9buildPythonPackage rec { 10 pname = "ytmusicapi"; 11 version = "1.11.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "sigma67"; 16 repo = "ytmusicapi"; 17 tag = version; 18 hash = "sha256-ZgzrXVBvITAW01hgFfFw13BcEVLxxhOzgrJSs+Bn3wg="; 19 }; 20 21 build-system = [ setuptools-scm ]; 22 23 dependencies = [ requests ]; 24 25 doCheck = false; # requires network access 26 27 pythonImportsCheck = [ "ytmusicapi" ]; 28 29 meta = with lib; { 30 description = "Python API for YouTube Music"; 31 homepage = "https://github.com/sigma67/ytmusicapi"; 32 changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${src.tag}"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ dotlambda ]; 35 mainProgram = "ytmusicapi"; 36 }; 37}