mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 01:45:11 +00:00
9d1fa577a1
Diff: https://github.com/rtcq/syncedlyrics/compare/refs/tags/v0.4.0...v0.5.0 Changelog: https://github.com/rtcq/syncedlyrics/releases/tag/v0.5.0
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, rapidfuzz
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syncedlyrics";
|
|
version = "0.5.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtcq";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-79dy1f5Pd/JGIpH/71E6IBg+AtR4zgHL4b/GRH1AFp0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"rapidfuzz"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|