depot/third_party/nixpkgs/pkgs/development/python-modules/syncedlyrics/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

56 lines
1 KiB
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, pythonRelaxDepsHook
, rapidfuzz
, requests
}:
buildPythonPackage rec {
pname = "syncedlyrics";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rtcq";
repo = "syncedlyrics";
rev = "refs/tags/v${version}";
hash = "sha256-Q0Hu403Hxr4iDuZfGQjgTSuNMVgsqd9zLRl9Vc1YzyQ=";
};
build-system = [
poetry-core
pythonRelaxDepsHook
];
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";
mainProgram = "syncedlyrics";
homepage = "https://github.com/rtcq/syncedlyrics";
changelog = "https://github.com/rtcq/syncedlyrics/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}