diff --git a/pkgs/by-name/sy/syrics/package.nix b/pkgs/by-name/sy/syrics/package.nix new file mode 100644 index 000000000000..520b67d3887c --- /dev/null +++ b/pkgs/by-name/sy/syrics/package.nix @@ -0,0 +1,42 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "syrics"; + version = "0.1.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "akashrchandran"; + repo = "syrics"; + tag = "v${version}"; + hash = "sha256-YoH5rgj0kt9fDILc9dTAFO5erOBWexuqT9hY7e6bj6Q="; + }; + + build-system = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + dependencies = with python3.pkgs; [ + requests + spotipy + tinytag + tqdm + ]; + + pythonImportsCheck = [ + "syrics" + ]; + + meta = { + description = "Command line tool to fetch lyrics from spotify and save it to lrc file"; + homepage = "https://github.com/akashrchandran/syrics/"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ yogansh ]; + mainProgram = "syrics"; + }; +}