5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
51 lines
1,019 B
Nix
51 lines
1,019 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pythonOlder,
|
|
rapidfuzz,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syncedlyrics";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtcq";
|
|
repo = "syncedlyrics";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rKYze8Z7F6cEkpex6UCFUW9+mf2UWT+T86C5COhYQHY=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [ "rapidfuzz" ];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
mainProgram = "syncedlyrics";
|
|
};
|
|
}
|