159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
40 lines
887 B
Nix
40 lines
887 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ytmusicapi";
|
|
version = "1.8.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigma67";
|
|
repo = "ytmusicapi";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-zjJ/Kkym4zHYYIlITgTas+q41vv9ow/f6AqfTd64iB8=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
doCheck = false; # requires network access
|
|
|
|
pythonImportsCheck = [ "ytmusicapi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for YouTube Music";
|
|
homepage = "https://github.com/sigma67/ytmusicapi";
|
|
changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
mainProgram = "ytmusicapi";
|
|
};
|
|
}
|