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