587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
47 lines
939 B
Nix
47 lines
939 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ytmusicapi";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigma67";
|
|
repo = "ytmusicapi";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-DqTcdWVivE2R51qm3XQ7cDnD1a90AocmX9TG+M5reto=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
doCheck = false; # requires network access
|
|
|
|
pythonImportsCheck = [
|
|
"ytmusicapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for YouTube Music";
|
|
mainProgram = "ytmusicapi";
|
|
homepage = "https://github.com/sigma67/ytmusicapi";
|
|
changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|