1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pythonOlder,
8 pythonRelaxDepsHook,
9 rapidfuzz,
10 requests,
11}:
12
13buildPythonPackage rec {
14 pname = "syncedlyrics";
15 version = "0.9.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "rtcq";
22 repo = "syncedlyrics";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-Q0Hu403Hxr4iDuZfGQjgTSuNMVgsqd9zLRl9Vc1YzyQ=";
25 };
26
27 build-system = [
28 poetry-core
29 pythonRelaxDepsHook
30 ];
31
32 pythonRelaxDeps = [ "rapidfuzz" ];
33
34 dependencies = [
35 requests
36 rapidfuzz
37 beautifulsoup4
38 ];
39
40 # Tests require network access
41 doCheck = false;
42
43 pythonImportsCheck = [ "syncedlyrics" ];
44
45 meta = with lib; {
46 description = "Module to get LRC format (synchronized) lyrics";
47 mainProgram = "syncedlyrics";
48 homepage = "https://github.com/rtcq/syncedlyrics";
49 changelog = "https://github.com/rtcq/syncedlyrics/releases/tag/v${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ fab ];
52 };
53}