Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 requests, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "ytmusicapi"; 13 version = "1.7.5"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "sigma67"; 20 repo = "ytmusicapi"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-hj2pGT35LCotR96WnyyyRVEiixwru57e3gPhL8tptfk="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 dependencies = [ requests ]; 31 32 doCheck = false; # requires network access 33 34 pythonImportsCheck = [ "ytmusicapi" ]; 35 36 meta = with lib; { 37 description = "Python API for YouTube Music"; 38 homepage = "https://github.com/sigma67/ytmusicapi"; 39 changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 mainProgram = "ytmusicapi"; 43 }; 44}