mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
7a719805bb
Diff: https://github.com/rtcq/syncedlyrics/compare/refs/tags/v0.6.0...v0.6.1 Changelog: https://github.com/rtcq/syncedlyrics/releases/tag/v0.6.1
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.6.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtcq";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-oMG3TqCJfEyfF5zK8hNhyhQ1z7G+S+De8hI1GLCfctM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|