2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-03-19 17:17:44 +00:00
|
|
|
, requests
|
2022-11-21 17:40:18 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ytmusicapi";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.6.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-DqTcdWVivE2R51qm3XQ7cDnD1a90AocmX9TG+M5reto=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # requires network access
|
|
|
|
|
2021-12-06 16:07:01 +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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ytmusicapi";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|