depot/third_party/nixpkgs/pkgs/development/python-modules/syncedlyrics/default.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";
};
}