depot/third_party/nixpkgs/pkgs/development/python-modules/syncedlyrics/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

55 lines
1 KiB
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, pythonRelaxDepsHook
, rapidfuzz
, requests
}:
buildPythonPackage rec {
pname = "syncedlyrics";
version = "0.8.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rtcq";
repo = "syncedlyrics";
rev = "refs/tags/v${version}";
hash = "sha256-ro9HzI8N7Ry4xh91mO1Vyy3CScEi3FifweOO01/Ti0w=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"rapidfuzz"
];
propagatedBuildInputs = [
requests
rapidfuzz
beautifulsoup4
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [
"syncedlyrics"
];
meta = with lib; {
description = "Module to get LRC format (synchronized) lyrics";
homepage = "https://github.com/rtcq/syncedlyrics";
changelog = "https://github.com/rtcq/syncedlyrics/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}