depot/third_party/nixpkgs/pkgs/development/python-modules/ytmusicapi/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "ytmusicapi";
version = "1.7.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "sigma67";
repo = "ytmusicapi";
rev = "refs/tags/${version}";
hash = "sha256-hj2pGT35LCotR96WnyyyRVEiixwru57e3gPhL8tptfk=";
};
build-system = [
setuptools
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";
};
}