depot/third_party/nixpkgs/pkgs/development/python-modules/syncedlyrics/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
pythonRelaxDepsHook,
rapidfuzz,
requests,
}:
buildPythonPackage rec {
pname = "syncedlyrics";
version = "0.10.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rtcq";
repo = "syncedlyrics";
rev = "refs/tags/v${version}";
hash = "sha256-jqd68Npt7qq9aMWO3AVR4JRAs9avO4x9u+MC/brU1Cw=";
};
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";
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";
};
}