5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
48 lines
956 B
Nix
48 lines
956 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ytmusicapi";
|
|
version = "1.3.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigma67";
|
|
repo = "ytmusicapi";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-dJckAQ0sWdP7I10khcyKGKsIcDTXQxZtP7B8JHlIZEo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|