2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools-scm,
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ytmusicapi";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.8.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sigma67";
|
|
|
|
repo = "ytmusicapi";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-PuGGUyQ199Awo0Dqi6xUAAt53WZjvaLiW7bIT4zlMT0=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ requests ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
doCheck = false; # requires network access
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "ytmusicapi" ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Python API for YouTube Music";
|
2021-03-19 17:17:44 +00:00
|
|
|
homepage = "https://github.com/sigma67/ytmusicapi";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}";
|
2021-03-19 17:17:44 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "ytmusicapi";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|