504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, rapidfuzz
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syncedlyrics";
|
|
version = "0.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtcq";
|
|
repo = "syncedlyrics";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qZVUptmLouFFBCWiRviYFO0sQKlyz65GjWMg/b1idXY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|