depot/third_party/nixpkgs/pkgs/development/python-modules/ytmusicapi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
922 B
Nix

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